This is a bug and we missed fixing it in 7.0.2 patch. I am
pasting the fix below, you will have to modify the file "C:\Program
Files\Adobe\Adobe RoboHelp
8\RoboHTML\WebHelp5Ext\template_stock\whtopic.js" manually if you
wish you take up the fix.
Look for funciton
this.doHighlight = function( a_aRanges, a_nStart )
and replace the entire function body with
this.doHighlight = function( a_aRanges, a_nStart )
{
s_strHlStart = "<font style='color:" + gsTextColor + ";
background-color:" + gsBkgndColor + "'>";
s_strHlEnd = "</font>";
if ( a_nStart >= a_aRanges.length )
return a_nStart;
var nEnd = this.getClosedRanges( a_aRanges, a_nStart );
if ( this.aClosedRanges.length == 0 )
return nEnd;
var strText = this.node.data;
var strHTML = "";
var nLastStart = 0;
for ( var i = 0; i < this.aClosedRanges.length; i++ )
{
strHTML += strText.substring( nLastStart, this.aClosedRanges
.nStart - this.nFrom );
strHTML += s_strHlStart;
strHTML += strText.substring( this.aClosedRanges.nStart
- this.nFrom,
this.aClosedRanges
.nEnd - this.nFrom );
strHTML += s_strHlEnd;
nLastStart = this.aClosedRanges.nEnd - this.nFrom;
}
strHTML += strText.substr( nLastStart );
var spanElement = document.createElement( "span" );
spanElement.innerHTML = strHTML;
if (gbIE4)
{
//for IE, when assigning string to innerHTML, leading
whitespaces are dropped
if ((strHTML.length >0)&&(strHTML.charAt(0) == "
"))
spanElement.innerHTML = " " + spanElement.innerHTML
;
}
this.node.parentNode.replaceChild( spanElement, this.node );
if(gnYPos == -1)
{
var elemObj = spanElement;
var curtop = 0;
if (elemObj.offsetParent)
{
while (elemObj.offsetParent)
{
curtop += elemObj.offsetTop
elemObj = elemObj.offsetParent;
}
}
else if (elemObj.y)
curtop += elemObj.y;
gnYPos = curtop;
}
return nEnd;
};
Notice that only following 6 new lines have been added in the
modificaiton
if (gbIE4)
{
//for IE, when assigning string to innerHTML, leading
whitespaces are dropped
if ((strHTML.length >0)&&(strHTML.charAt(0) == "
"))
spanElement.innerHTML = " " + spanElement.innerHTML
;
}
thanks
Vivek
RoboHelp Team.
Adobe Systems.