commit merge

pull/8/head
yongfu 6 years ago
commit 1b1242404a

@ -39,6 +39,7 @@ def strip_line(single_line):
within_quotes = not within_quotes within_quotes = not within_quotes
return '"'.join(parts) return '"'.join(parts)
def multi_semicolon(single_line): def multi_semicolon(single_line):
"""break multi_semicolon into multiline (except when within quotation marks).""" """break multi_semicolon into multiline (except when within quotation marks)."""
@ -99,7 +100,6 @@ def strip_reg_template_tags(line: str) -> str:
line = line.replace(TEMPLATE_REG_CLOSING_TAG, "}") line = line.replace(TEMPLATE_REG_CLOSING_TAG, "}")
return line return line
def apply_variable_template_tags(line: str) -> str: def apply_variable_template_tags(line: str) -> str:
"""Replaces variable indicators ${ and } with tags, so subsequent formatting is easier.""" """Replaces variable indicators ${ and } with tags, so subsequent formatting is easier."""
return re.sub(r'\${\s*(\w+)\s*}', return re.sub(r'\${\s*(\w+)\s*}',

Loading…
Cancel
Save