[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: BUG REPORT: Website META Language 1.7.4 (06-Oct-1999)
- From: Denis Barbier <nospam@thanx>
- Date: Fri, 5 Nov 1999 11:18:54 +0100 (CET)
Hi Thomas,
I won't disable area substitutions within tocs, but you can.
Try one of the following items:
a) Use an alternate string in toc sections
{:
[[s|(home.page)|<a href="my.home.net">$1</a>|g]]
[[s|HOME PAGE|home page|g]]
<<BODY>>
:}
and write
<toc_h1>Do you have a HOME PAGE?</toc_h1>
b) Define new toc_h[1-6] tags
<define-container mytoc_h1>
<toc_h1><protect pass=6>%body</protect></toc_h1>
</define-container>
...
c) Surround <toc> with protect tags and use an epilog filter to remove
unnecessary stuff.
Denis
On Thu, 4 Nov 1999, Thomas Akin wrote:
[...]
> If I have a template "my.tmpl" that has
>
> {:
> [[s|(home.page)|<a href="my.home.net">$1</a>|igs]]
> <<BODY>>
> :}
>
> and I have a wml file test.wml
>
> #include wml::std::toc style=ol
> #use "my.tmpl"
>
> <divert BODY>
> <toc>
>
> <toc_h1>Do you have a home page?</toc_h1>
> <br>
> Yes! Follow this link to see my home page.
>
> </divert BODY>
>
> I get the output
>
> <ol><li><a href="#ToC1"><strong>Do you have a
> <a href="my.home.net">home page</a>?</strong></a>
> </ol>
>
> <a name="ToC1">Do you have a <a href="my.home.net">
> home page</a>?</a>
> <br>
> Yes! Follow this link to see my <a href="my.home.net">
> home page</a>.
>
> And I have a nested href inside my TOC... Not
> pretty...
>
> The ability to put <protect pass=6> </protect>
> around the <toc> tag would fix this problem....
>
>
> Thanks,
>
>
> Thomas
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com