diff --git a/SassBeautify.py b/SassBeautify.py index d26f30e..fd429d9 100644 --- a/SassBeautify.py +++ b/SassBeautify.py @@ -173,11 +173,24 @@ def insert_newline_between_capturing_parentheses(m): content = re.sub(re.compile('(;.*|}.*)(\n +//.*\n.+[{,])$', re.MULTILINE), insert_newline_between_capturing_parentheses, content) return content - + def use_single_quotes(self, content): content = content.replace('"', '\'') return content + def beautify_semicolons(self, content): + ''' + Appends a semicolon to the lines missing one + ''' + def remove_semicolon_from_end_of_comment(m): + return m.group(1) + m.group(2) + + content = re.sub(re.compile('(?