Skip to main content
Known Participant
March 17, 2011
Answered

Wrap TOC text in RH8?

  • March 17, 2011
  • 1 reply
  • 1668 views

Hi guys,

I found an old post from 2006 that talks about some funky workaround to force topic titles to wrap in the TOC in webhelp;

http://forums.adobe.com/message/378004#378004

Not being a scripter myself, I was kind of hoping there was an easier way than messing with the js file as described in that post.  Any chance anyone knows a better way?

Chris

    This topic has been closed for replies.
    Correct answer Willam van Weelden

    Hi,

    I want to give it one last try. Please email me at contact [at] wvanweelden [dot] eu and I can send you a modified file that works in my projects.

    Greet,

    Willam


    I send the modified whthost.js file and that worked. The modified file can now be downloaded on my site via the link in the previous post.

    Greet,

    Willam

    1 reply

    Willam van Weelden
    Inspiring
    March 17, 2011

    Hi,

    Not that I can think of. But you can just igonre the discussion and follow the three steps in the last post. For the nobr-tags, just do a find and replace on "<nobr>" and "</nobr>" and replace them with nothing.

    Also note that the whthost.js is overwritten every time you generate your project. You best make a copy of the modified file and paste it in your output.

    Greet,

    Willam

    KoprivaAuthor
    Known Participant
    March 17, 2011

    wow - thanks William!

    Both those things are good to know!

    Chris

    Willam van Weelden
    Inspiring
    March 23, 2011

    William,

    I did delete the original writeanitem code.  I even had one of our developers try to help me, and it seems that we remove the <nobr> tags in that writeanitem function at all - even if we copy your code (which doesn't have the <nobr> tags in it) - then we can click and open a book, and we can click a topic - but once we click a topic, the BOOK links die.  Is that not happening when you try this code?

    Chris


    Guess I didn't try that . Seriously, this is a bit of a pain. Removing the nobr-tags and modifying some functions here and there is quite bothersome. I devised an easier method that should do exactly what you want. See http://www.wvanweelden.eu/robohelp/webhelp/skinwebhelp/wraptoc

    I tested this with sevaral RH8 projects, but if it doesn't work for you, please post back.

    Greet,

    Willam