New CSS class for div after titles. Same as hX: "title_X"
This commit is contained in:
parent
0d91e2dce9
commit
43895adef7
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue