[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: bug in href or toc?
- From: Werner Heuser <nospam@thanx>
- Date: Mon, 11 Feb 2002 18:33:21 +0100
...
> you obviously use wml::std::toc which creates a TableOfContent and adds
> a <a name..> to all <hX>
right, that's the WML feature I use
>
> IMHO wlm::std::toc is missing some features like excluding a <hX> from the
> TOC (even though <protect> might do it) and an additional <nobr> style
I would like this feature, too. But Denis Barbier send me this work
around, it builds a ToC of <h2> headers only:
<ul class="toc">
#use wml::std::toc style=ul
<define-tag toc_section endtag=required whitespace=delete>
<when <eq %0 2>>
%body
</when>
</define-tag>
{:
[[s/\n\n+/\n/g]]
[[s/<strong>//g]]
[[s/<\/strong>//g]]
[[s/<a href/<li><a href/g]]
[[s/<\/a>/<\/a><\/li>/g]]
<toc>
:}
</ul>
--
|=| Werner Heuser = Keplerstr. 11A = D-10589 Berlin = Germany
|=| <wehe_AT_mobilix.org> T. 0049 - (0)30 - 349 53 86
|=| http://MobiliX.org How to Use UniX on Mobile Computers
|=| http://Xtops.DE Laptops+PDAs pre-installed with UniX
|*| This is no time for phony rhetoric -- Lou Reed
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com