diff --git a/getDataToHTML.py b/getDataToHTML.py index 4991364..b498b08 100644 --- a/getDataToHTML.py +++ b/getDataToHTML.py @@ -18,6 +18,7 @@ def run(self, lines): header_match = re.match(r'^\s*#{1,6}\s+(.*)', line) if header_match: if in_section: + new_lines.append('
') # Add line divider new_lines.append('') # Close the previous section new_lines.append('') # Close the previous section header_content = header_match.group(1).strip() @@ -49,6 +50,7 @@ def run(self, lines): else: new_lines.append(f'{line.strip()}
') if in_section: + new_lines.append('') # Add line divider new_lines.append('') # Close the last section new_lines.append('') # Close the last section return new_lines diff --git a/output.html b/output.html index db92269..b812ffd 100644 --- a/output.html +++ b/output.html @@ -9,6 +9,7 @@this is very good content lol
+