]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Spurious___60__p__62___elements_added_to_tags_in_inliine_pages.mdwn
web commit by sward
[ikiwiki.git] / doc / bugs / Spurious___60__p__62___elements_added_to_tags_in_inliine_pages.mdwn
1 [[tag patch]]
2
3 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.
4
5 Example output:
6
7     <p><span class="tags">
8     Tags:</p>
9     
10     <p><span class="selflink">XML</span></p>
11     
12     <p></span></p>
13
14 Expected output:
15
16     <p><span class="tags">
17     Tags:
18     
19     <span class="selflink">XML</span>
20     </span></p>
21
22 A fix is to change inlinepage.tmpl to remove new lines around tag links, as follows:
23
24     --- templates/inlinepage.tmpl   (revision 4626)
25     +++ templates/inlinepage.tmpl   (working copy)
26     @@ -24,9 +24,7 @@
27      <TMPL_IF NAME="TAGS">
28      <span class="tags">
29      Tags:
30     -<TMPL_LOOP NAME="TAGS">
31     -<TMPL_VAR NAME=LINK>
32     -</TMPL_LOOP>
33     +<TMPL_LOOP NAME="TAGS"> <TMPL_VAR NAME=LINK></TMPL_LOOP>
34      </span>
35      </TMPL_IF>