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 @@

BQ76942-pcbs-esp32

src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;">

+
@@ -16,5 +17,6 @@

BQ76942-pcbs-esp32

test123

this is very good content lol

no image +
\ No newline at end of file