fix. In icode/bcode/quote, replace <,>
This commit is contained in:
parent
84e1ad47c4
commit
77ae782037
|
@ -261,6 +261,8 @@ def protect_bcodes_quotes(process, post_bottom):
|
||||||
in_bcode = False
|
in_bcode = False
|
||||||
if process == "wip":
|
if process == "wip":
|
||||||
bcode = '%s\n%s'%(bcode, line)
|
bcode = '%s\n%s'%(bcode, line)
|
||||||
|
bcode = bcode.replace('<', '<')
|
||||||
|
bcode = bcode.replace('>', '>')
|
||||||
b64_bcode = b64('Encode', bcode, 'B64.', '.B64')
|
b64_bcode = b64('Encode', bcode, 'B64.', '.B64')
|
||||||
line = b64_bcode
|
line = b64_bcode
|
||||||
|
|
||||||
|
@ -274,6 +276,8 @@ def protect_bcodes_quotes(process, post_bottom):
|
||||||
in_quote = False
|
in_quote = False
|
||||||
if process == "wip":
|
if process == "wip":
|
||||||
quote = '%s\n%s'%(quote, line)
|
quote = '%s\n%s'%(quote, line)
|
||||||
|
quote = quote.replace('<', '<')
|
||||||
|
quote = quote.replace('>', '>')
|
||||||
b64_quote = b64('Encode', quote, 'Q64.', '.Q64')
|
b64_quote = b64('Encode', quote, 'Q64.', '.Q64')
|
||||||
line = b64_quote
|
line = b64_quote
|
||||||
|
|
||||||
|
@ -357,6 +361,8 @@ def protect_icodes(post_bottom):
|
||||||
# No more in code if
|
# No more in code if
|
||||||
if c_a == '}' and not c_b == '\\':
|
if c_a == '}' and not c_b == '\\':
|
||||||
in_icode = False
|
in_icode = False
|
||||||
|
src_code = src_code.replace('<', '<')
|
||||||
|
src_code = src_code.replace('>', '>')
|
||||||
code = '%s%s%s'%(code, src_code, words_tags[9][3])
|
code = '%s%s%s'%(code, src_code, words_tags[9][3])
|
||||||
b64_code = b64('Encode', code, 'I64.', '.I64')
|
b64_code = b64('Encode', code, 'I64.', '.I64')
|
||||||
rep_code = "%s%s%s"%(
|
rep_code = "%s%s%s"%(
|
||||||
|
|
Loading…
Reference in New Issue