Wrap text in online TOC?

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
mwmartz
Propeller Head
Posts: 41
Joined: Wed Sep 12, 2007 12:51 pm
Location: Around and about Atlanta, Georgia, USA

Wrap text in online TOC?

Post by mwmartz »

Is there any way to wrap text in the online (WebHelp) TOC, rather than having it stretch so far past the navigation pane limits that it creates a bottom scroll bar?
beagley
Sr. Propeller Head
Posts: 182
Joined: Tue May 06, 2008 1:33 pm
Location: Vermont

Re: Wrap text in online TOC?

Post by beagley »

That would be wonderful. Good wishlist request!
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Wrap text in online TOC?

Post by Andrew »

You might be able to do this by setting the white-space property (under the block property group) on the correct element. I'd have to play with it, but I'd guess that one of the divs or other elements is set to nowrap.
Flare v6.1 | Capture 4.0.0
DurtyMat
Sr. Propeller Head
Posts: 224
Joined: Wed Aug 22, 2007 8:09 am
Location: ClrH2o, Fl

Re: Wrap text in online TOC?

Post by DurtyMat »

Go here: C:\Program Files\MadCap Software\MadCap Flare V5\Flare.app\Resources\WebHelp\Default.flwht

Open the Toc.html file in your favorite text editor

Edit the following:

<div id="CatapultToc" style="white-space: nowrap;">

Change the bold word into any of the white-space properties, for word wrapping, normal, should work.
Flare: I bought it ... so that means I can break it, right?
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Wrap text in online TOC?

Post by LTinker68 »

DurtyMat wrote:Go here: C:\Program Files\MadCap Software\MadCap Flare V5\Flare.app\Resources\WebHelp\Default.flwht
Note that if you change it in this location then that change will filter down to all projects. (DurtyMat probably knows that, but I'm pointing it out for anyone who isn't aware of the implications of changing the program file.)

If you only want it to wrap in one particular project but no others, then you'll have to modify the same file in the generated output folder for that project. Unfortunately, you'd have to make that modification every time you build the output, because the file is automatically overwritten with the default value.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Post Reply