changeset 224:88304513aa73

use span for anchordef imported from: moin--main--1.5--patch-227
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 19 Nov 2005 20:26:19 +0000
parents b14226034a35
children 1814c26fe6f1
files MoinMoin/formatter/text_html.py docs/CHANGES wiki/htdocs/classic/css/screen.css wiki/htdocs/modern/css/screen.css wiki/htdocs/rightsidebar/css/screen.css
diffstat 5 files changed, 21 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Sat Nov 19 19:30:20 2005 +0000
+++ b/MoinMoin/formatter/text_html.py	Sat Nov 19 20:26:19 2005 +0000
@@ -282,7 +282,9 @@
         return str
 
     def anchordef(self, id):
-        return '<a id="%s"></a>' % (id, ) # do not add a \n here, it breaks pre sections with line_anchordef
+        #return '<a id="%s"></a>' % (id, ) # this breaks PRE sections for IE
+        # do not add a \n here, it breaks pre sections with line_anchordef
+        return '<span id="%s" class="anchor"></span>' % (id, )
 
     def line_anchordef(self, lineno):
         return self.anchordef("line-%d" % lineno)
--- a/docs/CHANGES	Sat Nov 19 19:30:20 2005 +0000
+++ b/docs/CHANGES	Sat Nov 19 20:26:19 2005 +0000
@@ -2,6 +2,9 @@
 ========================
 
 Version 1.5.0beta4:
+  Fixes:
+    * use <span class="anchor"> instead of <a> for line-xxx anchors, this
+      fixes some rendering problems on IE
   Other changes:
     * cfg.stylesheets = [] (default). You can use this on wiki or farm level
       to emit stylesheets after the theme css and before the user prefs css.
--- a/wiki/htdocs/classic/css/screen.css	Sat Nov 19 19:30:20 2005 +0000
+++ b/wiki/htdocs/classic/css/screen.css	Sat Nov 19 20:26:19 2005 +0000
@@ -367,3 +367,8 @@
 	font-weight: bold;
 }
 
+/* Spans for line-anchors - uses * html hack so that the rule only applies to
+ * IE (where omitting the "display: none" triggers rendering bugs).
+ */
+* html span.anchor { display: none; }
+
--- a/wiki/htdocs/modern/css/screen.css	Sat Nov 19 19:30:20 2005 +0000
+++ b/wiki/htdocs/modern/css/screen.css	Sat Nov 19 20:26:19 2005 +0000
@@ -439,3 +439,8 @@
     background-color: #FFFF80;
 }
 
+/* Spans for line-anchors - uses * html hack so that the rule only applies to
+ * IE (where omitting the "display: none" triggers rendering bugs).
+ */
+* html span.anchor { display: none; }
+
--- a/wiki/htdocs/rightsidebar/css/screen.css	Sat Nov 19 19:30:20 2005 +0000
+++ b/wiki/htdocs/rightsidebar/css/screen.css	Sat Nov 19 20:26:19 2005 +0000
@@ -343,3 +343,8 @@
 	font-weight: bold;
 }
 
+/* Spans for line-anchors - uses * html hack so that the rule only applies to
+ * IE (where omitting the "display: none" triggers rendering bugs).
+ */
+* html span.anchor { display: none; }
+