From 10acbe25e730fa0973d56b49c0562c21f81c230c Mon Sep 17 00:00:00 2001 From: Christopher Pickering Date: Fri, 30 Jul 2021 10:40:21 -0500 Subject: [PATCH] changed back to re package for some greps.. regex crahsed. opened issue. --- src/djlint/formatter/expand_html.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/djlint/formatter/expand_html.py b/src/djlint/formatter/expand_html.py index 7fbfe97bd..cf1819add 100644 --- a/src/djlint/formatter/expand_html.py +++ b/src/djlint/formatter/expand_html.py @@ -1,4 +1,5 @@ """djLint expand out html code.""" +import re as old_re from functools import partial import regex as re @@ -58,11 +59,11 @@ def add_html_line(out_format, match): return out_format % match.group(1) # put attributes on one line - html = re.sub( + html = old_re.sub( tag_pattern, _flatten_attributes, html, - flags=re.IGNORECASE | re.DOTALL | re.MULTILINE, + flags=re.IGNORECASE | re.MULTILINE, ) html_tags = "|".join(break_html_tags)