This commit is contained in:
Kovid Goyal 2025-07-22 15:33:50 +05:30
parent 917079781d
commit 5c608d42a7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -393,7 +393,7 @@ class FFMLProcessor:
t = t + ' ' t = t + ' '
result += f'``{t}``' result += f'``{t}``'
elif tree.node_kind() == NodeKinds.CODE_BLOCK: elif tree.node_kind() == NodeKinds.CODE_BLOCK:
result += "\n[CODE]\n" + tree.text().replace('[/CODE]', r'[\/CODE]') + "[/CODE]\n" result += '\n[CODE]\n' + tree.text().replace('[/CODE]', r'[\/CODE]') + '[/CODE]\n'
elif tree.node_kind() == NodeKinds.END_SUMMARY: elif tree.node_kind() == NodeKinds.END_SUMMARY:
result += '[/]' result += '[/]'
elif tree.node_kind() == NodeKinds.ERROR_TEXT: elif tree.node_kind() == NodeKinds.ERROR_TEXT: