Non-breaking parentheses?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
RJP_TIBCO
Propeller Head
Posts: 11
Joined: Thu Apr 21, 2022 1:25 pm

Non-breaking parentheses?

Post by RJP_TIBCO »

Is there a way to make sure that programming terms such as 'exit()' remain on one line? I have PDF output where the line break is placed after the 't'. I created a style, .nobr { white-space: nowrap; } and applied it to 'exit()'. While this did keep the whole term together on the one line, the next word is one space in from the left margin, not aligned with the rest of the lines in the paragraph.
Any ideas?
Thanks.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2632
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Non-breaking parentheses?

Post by ChoccieMuffin »

Might be a silly suggestion, but how about applying the .nobr style to "exit() ", with the space included in your .nobr span?
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
RJP_TIBCO
Propeller Head
Posts: 11
Joined: Thu Apr 21, 2022 1:25 pm

Re: Non-breaking parentheses?

Post by RJP_TIBCO »

Not a silly suggestion at all. I know because I had already tried it. Unfortunately, the next word on the following line still has that extra space in front of it.
Post Reply