Parcourir la source

Different approach to explicit line breaks

Rob Austein il y a 3 ans
Parent
commit
9830a562f9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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