Fix converted abbr
This commit is contained in:
parent
1368c98c15
commit
0f63dace69
|
@ -366,10 +366,17 @@ 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
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue