aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-10-23 11:53:55 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-10-23 11:53:55 +0000
commitb686cd2a249ac2c0117bc561222ce9c2c79d7ca3 (patch)
tree89081835e54989a4c78c0f954075dfa67d7afa46
parentcd67224be66931c9630e146831bc21ff854cb728 (diff)
downloadikiwiki-b686cd2a249ac2c0117bc561222ce9c2c79d7ca3.tar
ikiwiki-b686cd2a249ac2c0117bc561222ce9c2c79d7ca3.tar.gz
web commit by sward
-rw-r--r--doc/bugs/Spurious___60__p__62___elements_added_to_tags_in_inliine_pages.mdwn35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/bugs/Spurious___60__p__62___elements_added_to_tags_in_inliine_pages.mdwn b/doc/bugs/Spurious___60__p__62___elements_added_to_tags_in_inliine_pages.mdwn
new file mode 100644
index 000000000..f60a8e682
--- /dev/null
+++ b/doc/bugs/Spurious___60__p__62___elements_added_to_tags_in_inliine_pages.mdwn
@@ -0,0 +1,35 @@
+[[tag patch]]
+
+When a page containing tags and using the [[syntax_(3rd_party)_plugin|plugins/contrib/syntax]] (though pages using other preprocessors may also be affected) is rendered as an inline page, some extra `<p>` elements are added.
+
+Example output:
+
+ <p><span class="tags">
+ Tags:</p>
+
+ <p><span class="selflink">XML</span></p>
+
+ <p></span></p>
+
+Expected output:
+
+ <p><span class="tags">
+ Tags:
+
+ <span class="selflink">XML</span>
+ </span></p>
+
+A fix is to change inlinepage.tmpl to remove new lines around tag links, as follows:
+
+ --- templates/inlinepage.tmpl (revision 4626)
+ +++ templates/inlinepage.tmpl (working copy)
+ @@ -24,9 +24,7 @@
+ <TMPL_IF NAME="TAGS">
+ <span class="tags">
+ Tags:
+ -<TMPL_LOOP NAME="TAGS">
+ -<TMPL_VAR NAME=LINK>
+ -</TMPL_LOOP>
+ +<TMPL_LOOP NAME="TAGS"> <TMPL_VAR NAME=LINK></TMPL_LOOP>
+ </span>
+ </TMPL_IF>