Explorar o código

Different approach to explicit line breaks

Rob Austein %!s(int64=3) %!d(string=hai) anos
pai
achega
9830a562f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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