Fix converted abbr

This commit is contained in:
Cyrille L 2023-04-05 18:05:00 +02:00
parent 1368c98c15
commit 0f63dace69
1 changed files with 9 additions and 2 deletions

View File

@ -366,11 +366,18 @@ def wip_links():
def wip_abbrs():
if db.uniq_abbrs == 0: return
abbr_src = '<abbr title="%s">%s</abbr>'
for i in range(1, db.uniq_abbrs + 1):
abbr = 'db.abbr_%s'%i
try: abbr_show = eval(abbr)[2]
except: abbr_show = eval(abbr)[0]
abbr_html = abbr_src%(eval(abbr)[1],
abbr_show
)
replace_in_post(eval(abbr)[0],
eval(abbr)[1]
)
abbr_html
)
#---------------------------------------#