From a0755ea9f139297e02cd72391096ddfb88f620bc Mon Sep 17 00:00:00 2001 From: "Hartung, Michael" <michael.hartung@uni-hamburg.de> Date: Tue, 13 Sep 2022 15:20:54 +0200 Subject: [PATCH] do not prefix primeng classes starting with "pi-" --- prefixCSS.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prefixCSS.py b/prefixCSS.py index b6b5e712..fbbcd117 100644 --- a/prefixCSS.py +++ b/prefixCSS.py @@ -261,7 +261,7 @@ class ParserCSS: def prefixClasses(self, classListString): classListStringList = classListString.split('.') classListStringList = [x for x in classListStringList if len(x)] - classListStringList = [self.PREFIXCLASS + x if not (x.startswith('ng-') or x.startswith('p-') or x.startswith('drugstone-plugin-') or x.startswith('fa-')) else '.' + x for x in classListStringList] + classListStringList = [self.PREFIXCLASS + x if not (x.startswith('ng-') or x.startswith('p-') or x.startswith('pi-') or x.startswith('drugstone-plugin-') or x.startswith('fa-')) else '.' + x for x in classListStringList] return '.'.join(classListStringList) def prefixId(self, classListString): @@ -378,14 +378,14 @@ def parse(): buildManager.buildDevDir() buildManager.parseApp() except: - buildManager.cleanup() + buildManager.cleanup() raise Exception('ERROR: CSS prefix script failed.') print('Parsing done!') def cleanup(): print('Starting cleanup...') buildManager = BuildManager(ORIGDIR) - buildManager.cleanup() + buildManager.cleanup() print('Cleanup done!') -- GitLab