Conditional text underlined in PDF
Conditional text underlined in PDF
I am generating WebHelp and PDF output using some of the same topics. In these topics, some text is conditionalized for either WebHelp or a specific PDF target. In all cases, the correct text is appearing in the output. However, in the PDFs, all the conditionalized text is showing up underlined. Does anyone know what might be causing this and how to make it not happen?
Re: Conditional text underlined in PDF
is there any chance that you've managed to apply a hyperlink style to that text in the PDF? Or that the style that has been applied has inadvertently had the underline property set on in for the stylesheet/medium you are using for the PDF?
Marjorie
My goal in life is to be as good a person as my dogs already think I am.
My goal in life is to be as good a person as my dogs already think I am.
Re: Conditional text underlined in PDF
Here's what the text looks like in one place where it's happening (it's happening everywhere I have conditional text in the PDFs):
<MadCap:conditionalText MadCap:conditions="rnoConditions.RNO-HLP">A <span class="NewTerm">Hitachi Content Platform (HCP) <MadCap:variable name="GlobalVariables.ProductNameAbbr" /></span></MadCap:conditionalText>
<MadCap:conditionalText MadCap:conditions="rnoConditions.RNO-API,rnoConditions.RNO-ASS,rnoConditions.RNO-MNT,rnoConditions.RNO-STU">An <MadCap:variable name="GlobalVariables.ProductName" /></MadCap:conditionalText> is a ....
The text with the condition RNO.HLP goes in the WebHelp and does not come out underlined. The text with the RNO-API, RNO-ASS, RNO-MNT, and RNO-STU conditions goes in PDFs and comes out underlined (that is, "An HCP S10 Node" comes out underlined). ("HCP S10 Node" is the replacement text for the ProductName variable.)
NewTerm is defined in the CSS as:
span.NewTerm
{
font-weight: bold;
}
<MadCap:conditionalText MadCap:conditions="rnoConditions.RNO-HLP">A <span class="NewTerm">Hitachi Content Platform (HCP) <MadCap:variable name="GlobalVariables.ProductNameAbbr" /></span></MadCap:conditionalText>
<MadCap:conditionalText MadCap:conditions="rnoConditions.RNO-API,rnoConditions.RNO-ASS,rnoConditions.RNO-MNT,rnoConditions.RNO-STU">An <MadCap:variable name="GlobalVariables.ProductName" /></MadCap:conditionalText> is a ....
The text with the condition RNO.HLP goes in the WebHelp and does not come out underlined. The text with the RNO-API, RNO-ASS, RNO-MNT, and RNO-STU conditions goes in PDFs and comes out underlined (that is, "An HCP S10 Node" comes out underlined). ("HCP S10 Node" is the replacement text for the ProductName variable.)
NewTerm is defined in the CSS as:
span.NewTerm
{
font-weight: bold;
}
Re: Conditional text underlined in PDF
Forgot to say: All the conditional text (both for WebHelp and PDFs) looks underlined in the XML Editor.
Re: Conditional text underlined in PDF
Look at the MadCap:conditionalText style in the stylesheet maybe (in default and all other mediums if necessary). Does it have a text-decoration: underline there? Try explicitly setting text-decoration: none in case it's inheriting an underline from some bizarre place.
That's my guess anyway.
That's my guess anyway.
-Dan, Propellerhead-in-training
Re: Conditional text underlined in PDF
That was the problem. THANKS!