Closed Bug 616822 Opened 14 years ago Closed 13 years ago

{for} inside headings does not work in TOC

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 628053

People

(Reporter: scoobidiver, Unassigned)

References

Details

{for} inside headings does not work.
See:
https://support.mozilla.com/en-US/kb/Pop-up%20blocker
To clarify, {for} works fine inside the headings themselves, but fails to work in the table of contents:

== {for win}Windows{/for}{for mac}Mac{/for} ==

works as expected but the TOC shows "WindowsMac".

A workaround for now is to wrap the {for} around the whole heading:

{for mac,linux}
== Preferences Window ==
{/for}
{for win}
== Options Window ==
{/for}
This workaround does not work for Windows because the Mac content is also displayed.
Maybe it is related to bug 616823 and the invisible {for}
I don't know why but the workaround works now.

If I don't want to have a blank line before on Windows and after on Mac, Linux, how can I do because:
Example 1 shows nothing on Windows and both contents on Mac, Linux:
{for mac,linux}
== Preferences Window ==
{/for}{for win}
== Options Window ==
{/for}
Example 2 works:
{for mac,linux}Mac{/for}{for win}Windows{/for}
Summary: {for} inside headings does not work → {for} inside headings does not work in TOC
Dupe of bug 628053?
(In reply to comment #5)
> Dupe of bug 628053?

Ah, yes, I *knew* this bug existed when 628053 was filed but couldn't find it.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.