Skip to content

Commit

Permalink
Delete multilines on Django templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément committed Jul 8, 2024
1 parent bda91cc commit 2bba35e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions jssg/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ def content(self) -> str:
# multiline text
# easy to read"
# }}}
def convert_case(match_obj):
return match_obj.group(2).replace("\n", " ")
self.body = re.sub("({{{TO-1-LINE)(((?!TO-1-LINE}}}).)*)(TO-1-LINE}}})", convert_case, self.body, flags=re.DOTALL)

# INFO - D.A. - Original code is below and is returned a markdown-based processed content
# this works only with unindented HTML templates because markdown interprets indentation
Expand Down

0 comments on commit 2bba35e

Please sign in to comment.