diff MoinMoin/formatter/text_html.py @ 516:ec330d9ec20b

fixed double </a> with qm_noexist imported from: moin--main--1.5--patch-520
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 28 Mar 2006 22:07:11 +0000
parents 1b9f0d6b9f48
children 39da9e68875c
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Tue Mar 28 21:52:01 2006 +0000
+++ b/MoinMoin/formatter/text_html.py	Tue Mar 28 22:07:11 2006 +0000
@@ -484,7 +484,6 @@
             See wikiutil.link_tag() for possible keyword parameters.
         """
         apply(FormatterBase.pagelink, (self, on, pagename, page), kw)
-        self.pagelink_preclosed = False
         if page is None:
             page = Page(self.request, pagename, formatter=self);
         if self.request.user.show_nonexist_qm and on and not page.exists():
@@ -493,6 +492,7 @@
                     self.text("?") +
                     page.link_to(self.request, on=0, **kw))
         elif not on and self.pagelink_preclosed:
+            self.pagelink_preclosed = False
             return ""
         else:
             return page.link_to(self.request, on=on, **kw)