mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-20 14:12:20 -04:00
Fix escape sequence problem
This commit is contained in:
@@ -393,7 +393,7 @@ class FFMLProcessor:
|
||||
t = t + ' '
|
||||
result += f'``{t}``'
|
||||
elif tree.node_kind() == NodeKinds.CODE_BLOCK:
|
||||
result += "\n[CODE]\n" + tree.text().replace('[/CODE]', '[\/CODE]') + "[/CODE]\n"
|
||||
result += "\n[CODE]\n" + tree.text().replace('[/CODE]', r'[\/CODE]') + "[/CODE]\n"
|
||||
elif tree.node_kind() == NodeKinds.END_SUMMARY:
|
||||
result += '[/]'
|
||||
elif tree.node_kind() == NodeKinds.ERROR_TEXT:
|
||||
|
||||
Reference in New Issue
Block a user