Variable has different value in displayed topic vs source

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
dfriedman
Jr. Propeller Head
Posts: 3
Joined: Mon Apr 13, 2015 1:47 pm

Variable has different value in displayed topic vs source

Post by dfriedman »

Having a real head scratcher with this one. Have a variable in my help called "Primary/Tab Name." The value I have set for it in my CHM target is not being updated in one topic when I view it with the CHM viewer. It is being updated in the source of the output though, which is extra maddening.

For example, in target: "Primary/Tab Name" = "Foo"
original definition: "Primary/Tab Name" = "Bar"

Every other topic:
Output: Foo tab.
Output Source: <span class="PrimaryTab Name">Foo</span> tab.

Evil topic:
Output: Bar tab.
Output Source: <span class="PrimaryTab Name">Foo</span> tab.

Any ideas?
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: Variable has different value in displayed topic vs sourc

Post by wclass »

I've had problems with variables if there is a space in the variable name - they seem to work at one level, but not if you customise for a target.

Try renaming from "Tab Name" to "TabName".

How many topics have you used the variable? You might have to do a find/replace to make sure the name change is updated properly.
Margaret Hassall - Melbourne
dfriedman
Jr. Propeller Head
Posts: 3
Joined: Mon Apr 13, 2015 1:47 pm

Re: Variable has different value in displayed topic vs sourc

Post by dfriedman »

Thanks for the help, Margaret. Turns out it was some legacy javascript that wanted to change content in a <span class = "tabname"> element into a specific string :oops: Commented out that code and it is working fine.
Post Reply