From 77ae7820373e92e2d47e9b313c49cd465ae342c8 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Wed, 15 Mar 2023 11:09:03 +0100 Subject: [PATCH] fix. In icode/bcode/quote, replace <,> --- src/var/lib/tyto/program/tyto.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/var/lib/tyto/program/tyto.py b/src/var/lib/tyto/program/tyto.py index ba83c13..cc49be1 100644 --- a/src/var/lib/tyto/program/tyto.py +++ b/src/var/lib/tyto/program/tyto.py @@ -261,6 +261,8 @@ def protect_bcodes_quotes(process, post_bottom): in_bcode = False if process == "wip": bcode = '%s\n%s'%(bcode, line) + bcode = bcode.replace('<', '<') + bcode = bcode.replace('>', '>') b64_bcode = b64('Encode', bcode, 'B64.', '.B64') line = b64_bcode @@ -274,6 +276,8 @@ def protect_bcodes_quotes(process, post_bottom): in_quote = False if process == "wip": quote = '%s\n%s'%(quote, line) + quote = quote.replace('<', '<') + quote = quote.replace('>', '>') b64_quote = b64('Encode', quote, 'Q64.', '.Q64') line = b64_quote @@ -357,6 +361,8 @@ def protect_icodes(post_bottom): # No more in code if if c_a == '}' and not c_b == '\\': in_icode = False + src_code = src_code.replace('<', '<') + src_code = src_code.replace('>', '>') code = '%s%s%s'%(code, src_code, words_tags[9][3]) b64_code = b64('Encode', code, 'I64.', '.I64') rep_code = "%s%s%s"%(