浏览代码

Different approach to explicit line breaks

Rob Austein 3 年之前
父节点
当前提交
9830a562f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      trac2md.py

+ 1 - 1
trac2md.py

@@ -108,7 +108,7 @@ class Trac2Markdown:
     def __call__(self, content, slug):
         self.slug = slug
 
-        old_content = self.content_linebreak_pattern.sub("\\\\\\\\\n", content).splitlines()
+        old_content = self.content_linebreak_pattern.sub("<br/>", content).splitlines()
         new_content = []
 
         code_block = False