Splitting code lines

merge-requests/30/head
Bob Mottram 2023-04-28 11:13:07 +01:00
parent 734e78fcd3
commit 2102919c69
1 changed files with 1 additions and 0 deletions

View File

@ -1171,6 +1171,7 @@ def html_tag_has_closing(tag_name: str, content: str) -> bool:
if tag_name == 'code': if tag_name == 'code':
# check that lines are not too long # check that lines are not too long
section = section.split(end_tag)[0] section = section.split(end_tag)[0]
section = section.replace('<br>', '\n')
code_lines = section.split('\n') code_lines = section.split('\n')
for line in code_lines: for line in code_lines:
if len(line) >= 60: if len(line) >= 60: