changeset 5432:172d77f67e0a

Fix of MoinMoinBugs/LineNumberSpansForProcessInstructionsMissed for plain text parser.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Fri, 15 Jan 2010 03:38:05 +0300
parents 5886d3b46063
children c800980890aa
files MoinMoin/parser/text.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/text.py	Fri Jan 15 03:37:48 2010 +0300
+++ b/MoinMoin/parser/text.py	Fri Jan 15 03:38:05 2010 +0300
@@ -40,6 +40,9 @@
 
         self.request.write(formatter.preformatted(1))
 
+        for lineno in range(1, self.start_line + 1):
+            self.request.write(formatter.line_anchordef(lineno))
+
         for line in self.lines:
             if self.lineno != self.start_line:
                 self.request.write(formatter.text('\n'))