Wrapping before a slash

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
JasonSTI
Sr. Propeller Head
Posts: 112
Joined: Mon Jan 07, 2008 11:34 am

Wrapping before a slash

Post by JasonSTI »

We have a couple topics discussing command line parameters, and noticed in the output that if a line contains a word with a leading slash, that is is wrapping the line on the word before that. I have attached an image of this. Is this something anyone else has encountered?
You do not have the required permissions to view the files attached to this post.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Wrapping before a slash

Post by LTinker68 »

Flare has a few glitches with wrapping in print output because it counts the characters in the backend of the topic code when it determines where to wrap. Usually the problem is if the text is wrapped in a span tag or some other tag and it's counting the tag. It doesn't appear as though there are span or other tags around that text that's wrapping, but there may be a CDATA or extra blank space in that line and the code is throwing it off. You might want to open that topic in the Internal Text Editor and see if there are any extra, unnecessary tags in that paragraph.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Wrapping before a slash

Post by Andrew »

Actually, I think the behavior there is frequently correct: slashes are typically used for dates, for alternatives (x / y, a / b, either / or, etc.). You want wrapped slashes to include the word before them many times. You would typically not want a slash to be the first or last thing on a line. Though I suppose you should be able to get the same effect using non-breaking spaces, so perhaps this should be a bug.
Flare v6.1 | Capture 4.0.0
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Wrapping before a slash

Post by KevinDAmery »

Makes sense - sort of an unintended consequence of handling dates in a certain way.
Until next time....
Image
Kevin Amery
Certified MAD for Flare
Cecily
Sr. Propeller Head
Posts: 217
Joined: Wed Sep 10, 2008 6:01 am
Location: England

Re: Wrapping before a slash

Post by Cecily »

Andrew wrote:I suppose you should be able to get the same effect using non-breaking spaces, so perhaps this should be a bug.
How do you do those in Flare? (I remember another topic that mentioned a way, but it was convoluted, I couldn't get it to work and I no longer remember what it was).
"Books are a narcotic." (Franz Kafka)
I wonder what he'd say about help files?
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Wrapping before a slash

Post by NorthEast »

Cecily wrote:
Andrew wrote:I suppose you should be able to get the same effect using non-breaking spaces, so perhaps this should be a bug.
How do you do those in Flare? (I remember another topic that mentioned a way, but it was convoluted, I couldn't get it to work and I no longer remember what it was).
Press Shift + Space.

Note that they don't necessarily appear non-breaking in Flare's editor mind, it seems a bit ropey, but they do work in the preview and output.
Cecily
Sr. Propeller Head
Posts: 217
Joined: Wed Sep 10, 2008 6:01 am
Location: England

Re: Wrapping before a slash

Post by Cecily »

Dave Lee wrote: Press Shift + Space.

Note that they don't necessarily appear non-breaking in Flare's editor mind, it seems a bit ropey, but they do work in the preview and output.
Nope. That doesn't work for me. Thanks anyway.
"Books are a narcotic." (Franz Kafka)
I wonder what he'd say about help files?
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Wrapping before a slash

Post by LTinker68 »

Cecily wrote:
Dave Lee wrote: Press Shift + Space.
Nope. That doesn't work for me. Thanks anyway.
What do you mean it doesn't work for you? Nothing happens or you don't like the code it inserts?
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Wrapping before a slash

Post by NorthEast »

Pressing Shift+Space does the same as Insert > Character > Non-breaking space ; and it inserts the code   in the topic.
Cecily
Sr. Propeller Head
Posts: 217
Joined: Wed Sep 10, 2008 6:01 am
Location: England

Re: Wrapping before a slash

Post by Cecily »

LTinker68 wrote: What do you mean it doesn't work for you? Nothing happens or you don't like the code it inserts?
I mean that I goofed! (Sorry.)

It's non-breaking hyphens that I can't get to work.
"Books are a narcotic." (Franz Kafka)
I wonder what he'd say about help files?
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Wrapping before a slash

Post by NorthEast »

Cecily wrote:
LTinker68 wrote: What do you mean it doesn't work for you? Nothing happens or you don't like the code it inserts?
I mean that I goofed! (Sorry.)

It's non-breaking hyphens that I can't get to work.
Ah, to do that, select Insert > Character > Select 'Quick' Character, and type 8209 in the lower box (for unicode).

Then just press F11 whenever you want to use it in a topic (i.e. insert your quick character).


Note that it'll not show correctly in the editor (not for me anyway, I see a box), but it looks ok in the preview/output.
Cecily
Sr. Propeller Head
Posts: 217
Joined: Wed Sep 10, 2008 6:01 am
Location: England

Re: Wrapping before a slash

Post by Cecily »

Dave Lee wrote: non-breaking hyphens

Ah, to do that, select Insert > Character > Select 'Quick' Character, and type 8209 in the lower box (for unicode).
Brilliant. Thanks. I don't know why I couldn't get it to work before.
"Books are a narcotic." (Franz Kafka)
I wonder what he'd say about help files?
Post Reply