changeset 4013:a258a234af5d

fix MoinMoinBugs/GuiEditorExtendsAnchorsToThePageName bug
author Byeongweon [tasyblue@gmail.com]
date Wed, 13 Aug 2008 18:39:51 +0900
parents 0c9ba3c96ac8
children 31a903106d19
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Aug 13 17:24:31 2008 +0900
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Aug 13 18:39:51 2008 +0900
@@ -1273,6 +1273,9 @@
                 # relative link ../
                 elif desc.startswith('../') and href.endswith(desc[3:]):
                     self.text.append(wikiutil.pagelinkmarkup(desc))
+                # internal link #internal
+                elif desc.startswith('#') and href.endswith(desc):
+                    self.text.append(wikiutil.pagelinkmarkup(desc))
                 # labeled link
                 else:
                     self.text.append(wikiutil.pagelinkmarkup(pagename, desc))