Skip to main content
Participating Frequently
January 3, 2008
Question

Some spacing dropped w/ Highlight enabled

  • January 3, 2008
  • 14 replies
  • 2012 views
Wondering if anyone else has encountered this. I'm seeing it in output from RH HTML 7. Note: I do not generate Help with a skin.

1. Generate WebHelp w/ any preferred format (I usually use DHTML > Java Applet > Pure HTML).
2. Select Search tab in Help and search for any string with 'Highlight search results' check box selected.
3. View a topic that contains search hits. Spaces are missing around some (not all) hyperlinked or formatted (e.g., bolded) text in the topic.

The only 'fix' for this I can find is to insert hard spaces in the HTML around all hyperlinked and formatted text. Surely there must be a better way....

Thanks in advance for any ideas.
This topic has been closed for replies.

14 replies

Inspiring
August 6, 2008
Done. Thanks for the link, Peter. -- kc
October 24, 2008
I'm having a similar problem, but in my case entire words are missing when I enable the Highlight toggle. I updated my version of RoboHelp to the latest version and also installed the JS file that Peter provided. I have attached an example of the problem I'm talking about (I hope that works).

Any ideas as to what's going on here? And thanks for any help.

-Al
Peter Grainge
Community Expert
Community Expert
August 6, 2008
I can only suggest you report this as a bug adding that you have already tried the updated JS file supplied by Adobe. Sorry.

http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Inspiring
August 5, 2008
I am already using the updated js file, which I downloaded from your site (item 32) before I posted previous messages. :*( -- kc
Peter Grainge
Community Expert
Community Expert
August 5, 2008
Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Inspiring
August 5, 2008
Well, I guess I spoke too soon. I'm still having issues with the highlighted search results. If the word preceding the highlighted text is bold, the space is missing after the bold text. But it's there in the Robo editor, and preview, and in HTML. The HTML looks like this:

<li class=p><p>Click <span style="font-weight: bold;">Backups</span>
in the left pane of the <b>STORServer Agent Settings</b> dialog box.</p></li>

The missing space in the FlashHelp output is the space after Settings when you search on "dialog box" or just "dialog."

Suggestions, ideas? -- kc
Inspiring
July 24, 2008
Good sleuthing!
MergeThis
Inspiring
July 24, 2008
Indeed, Holmes!
Inspiring
July 24, 2008
Thanks for replying, Harvey. As it turns out, this appears to be happening because I have an inline style applied within a Heading 1 and the highlighting feature doesn't handle the <span> tags properly.

In all my Heading 1's for topics describing dialog boxes and tabs, the name of the item had a different color from the nouns that follow. The color was applied as in inline style (selected words in the Heading 1 text and applied a different color font).

For example, in a topic whose Heaing 1 was Client Information dialog box, the words "Client" and "Information" were gold, matching the dialog box title bar. If you searched on client information dialog, the space between information and dialog box was removed in highlighted text. But if the inline style is removed, the space correctly appears in highlighted text.

Here's an example of the a Heading 1 with an inline style applied.

<h1><span style="color: #ffa54f;"><img src="circles_agentGUI.jpg" x-maintain-ratio=TRUE style="border: none; margin-left: 0px; margin-right: 6px; margin-top: 0px; margin-bottom: 3px; width: 73px; height: 49px; border-style: none; float: left; border-style: none; float: left;" width=73 height=49 align=left border=0>Client Information</span> dialog box</h1>

To work around this problem, I created a new Head1 style that applies the different color to the entire heading. That eliminates the extra <span> tags and the highlighted text appears correctly.

Still think the Robo code should allow for the <spans> but the workaround will work for us.


kc
Inspiring
July 24, 2008
kc,

Another point:

The RH Search function does not accommodate phrases. This is specifically noted in the RH help topic. Maybe this is irrelevant to the disappearing space issue, but what happens if you enter "client and error and log"?

H
Inspiring
July 24, 2008
kc,

Did you flush your browser disk cache in between?

Harvey
Inspiring
July 23, 2008
I was so excited to find this patch because I'm having a similar problem. Generating FlashHelp with RH7, if I search on 2 words with highlight turned on, they appear fine. But if I add a third word (client error log, for example), the space is missing between the second and third word in the highlighted text. It appears as "client errorlog".

I downloaded the updated whtopic.js from Peter's site (thanks, Peter) and put it in the WebHelp5Ext\template_stock folder (renamed the old one to old_whtopic.js first), and regenerated my FlashHelp, but the result was the same. Then I copied the updated .js file to the template_stock folder under WildFireExt (because I seem to remember putting other FlashHelp fixes there years ago) but that didn't fix the problem either. What am I missing? -- kc