From 757e387d84d8014abcf9b07d52d556fd483150d3 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Fri, 30 Dec 2022 17:54:44 +0100 Subject: [PATCH] wip: (fix) module titles (remove empty lines, create divs if contents after title) --- src/var/lib/tyto/program/wip.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/var/lib/tyto/program/wip.py b/src/var/lib/tyto/program/wip.py index babd408..248c782 100644 --- a/src/var/lib/tyto/program/wip.py +++ b/src/var/lib/tyto/program/wip.py @@ -500,22 +500,32 @@ def wip_titles(): # Add div after title if needed for ln, line in enumerate(article_tmp2.rsplit('\n')): if line.startswith(''%line ) + continue + else: + continue + # Close div before title if needed article_tmp2 = article_temp - # Add div after title if needed indiv = False for ln, line in enumerate(article_tmp2.rsplit('\n')): - if line.startswith('\n%s'%line )