Skip to main content
Participating Frequently
June 4, 2008
Question

Text wrapping for TOC entries

  • June 4, 2008
  • 2 replies
  • 617 views
Hi everyone!

I wonder if there's a way (CSS or a special file to edit) to make sure that all books and topics labels in TOC (WebHelp and FlashHelp) will not be truncated because of long labels and Navigation Pane width (220px) ?

Any suggestion ?

Thanks!

Jean Laurier
    This topic has been closed for replies.

    2 replies

    Peter Grainge
    Community Expert
    Community Expert
    June 11, 2008
    I am sorry but I cannot help you with javascript issues.

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Peter Grainge
    Community Expert
    Community Expert
    June 5, 2008
    Here's the link to a thread that addressed this question.

    http://tinyurl.com/6hbdlw

    If you do try it, perhaps you would post back to confirm whether or not the last post in the thread is the only change required.

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    JLaurierAuthor
    Participating Frequently
    June 11, 2008
    Hi Peter!

    In his last post (in thread : http://tinyurl.com/6hbdlw), Roger N gives a 3 steps procedure to work arround this issue (see below an extract from Roger's last post) :

    =======================================

    Roger N [Senior Member] 08/15/2006 06:57:42 AM

    In whthost.js:

    1) edit the function writeBookItems() as described.

    2) remove the width property from the TocWriteFixedWidth() function,

    3) remove the single <nobr> and </nobr> from the string found in the function WriteAnItem().

    To wrap the book titles, you would do the same for the WriteBook() function, and insert the script replacement mentioned above (in the first post) wherever it goes for books (ok, I'm getting lazy again).
    =======================================

    I followed these 3 steps and here's what I've got :

    Nothing significant until step 3 was done (I checked results after each step by reloading index.htm file);
    After step 3: Topics titles in TOC were looking fine and were wrapped! YES!
    But... TOC synchronization stopped working.

    I must also add that I didn't succeed with Books Titles wrapping because I didn't know how to modify properly the WriteBook() function.

    Rgds,

    Jean Laurier

    p.s.: There is no whthost.js file when generating a FlashHelp output! So I'm still searching a solution for that issue!