Commit 3125de7a authored by Bernhard Geier's avatar Bernhard Geier

in comments replace <br> with "|" instead of ","

parent e29e35ff
......@@ -38,8 +38,8 @@ def strip_html(text: str):
if text is None:
return None
# add a comma after <br/>
text = re.sub('(<br/?>)', r'\1, ', text, flags=re.IGNORECASE)
# add a | after <br/>
text = re.sub('(<br/?>)', r'\1 | ', text, flags=re.IGNORECASE)
# add a | between </p></p>
text = re.sub('\s*(</p>)\s*(<p>)\s*', r'\1 | \2 ', text, flags=re.IGNORECASE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment