mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix escape sequence problem
This commit is contained in:
parent
8013777a0f
commit
665221c4cd
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user