Przeglądaj źródła

Different approach to explicit line breaks

Rob Austein 3 lat temu
rodzic
commit
9830a562f9
1 zmienionych plików z 1 dodań i 1 usunięć
  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