diff --git a/mautrix_telegram/formatter/from_matrix/parser_lxml.py b/mautrix_telegram/formatter/from_matrix/parser_lxml.py index 424495cc..9fa99982 100644 --- a/mautrix_telegram/formatter/from_matrix/parser_lxml.py +++ b/mautrix_telegram/formatter/from_matrix/parser_lxml.py @@ -52,7 +52,7 @@ class RecursionContext: return RecursionContext(strip_linebreaks=self.strip_linebreaks, ul_depth=self.ul_depth + 1) def enter_code_block(self) -> 'RecursionContext': - return RecursionContext(strip_linebreaks=True, ul_depth=self.ul_depth) + return RecursionContext(strip_linebreaks=False, ul_depth=self.ul_depth) class MatrixParser(MatrixParserCommon):