protection

This commit is contained in:
mrT23
2024-09-08 17:46:21 +03:00
parent 52e8d7bc6a
commit ebc5cafb2b

View File

@ -979,7 +979,9 @@ def process_description(description_full: str):
long_summary = res.group(4).strip()
long_summary = long_summary.replace('<br> *', '\n*').replace('<br>','').replace('\n','<br>')
long_summary = h.handle(long_summary).strip()
if not long_summary.startswith('*'):
if long_summary.startswith('\\-'):
long_summary = "* " + long_summary[2:]
elif not long_summary.startswith('*'):
long_summary = f"* {long_summary}"
files.append({