New CSS class for div after titles. Same as hX: "title_X"

This commit is contained in:
Cyrille L 2023-03-09 09:51:01 +01:00
parent 0d91e2dce9
commit 43895adef7
1 changed files with 2 additions and 2 deletions

View File

@ -580,7 +580,7 @@ def wip_titles():
global article_bottom global article_bottom
article_temp = article_bottom article_temp = article_bottom
article_tmp2 = '' # COnstruct article, without empty lines article_tmp2 = '' # Construct article, without empty lines
for line in article_bottom.rsplit('\n'): for line in article_bottom.rsplit('\n'):
if line.startswith('#'): if line.startswith('#'):
@ -608,7 +608,7 @@ def wip_titles():
continue continue
else: else:
article_temp = article_temp.replace( article_temp = article_temp.replace(
line, '%s\n<div class="content_title">'%line line, '%s\n<div class="title_%s">'%(line, hx)
) )
continue continue
else: else: