September 05, 2010, 08:17:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Preventing widows, the continuing saga...  (Read 39 times)
0 Members and 1 Guest are viewing this topic.
AutoFetishist
Sr. Member
****

Karma: 1
Offline Offline

Gender: Male
Posts: 302



« on: July 27, 2010, 04:56:52 AM »

(q7.5)

I'm having a brain cramp, or this isn't as easy I think it should be...

I want to prevent one-word widows, such as:

Someday I will quit this job, he
promised.


I thought that replacing the last space of every paragraph with a non-breaking space would work, but instead I occasionally get this:

Someday I will quit this job, he pro-
mised.


So to fix that, I would need a discretionary hyphen in front of the last word, but after the non-breaking space, right?

But that doesn't work either...

Does anyone know how to do this? There must be a way...

Logged
cdms
Jr. Member
**

Karma: 6
Offline Offline

Gender: Male
Posts: 84


« Reply #1 on: July 27, 2010, 05:59:12 AM »

Do you want it to be

Someday I will quit this job,
he promised.

?

If so can you either;

a) switch hyphenation off for these paragraphs
b) change the second to last space to a soft return.




Logged
AutoFetishist
Sr. Member
****

Karma: 1
Offline Offline

Gender: Male
Posts: 302



« Reply #2 on: July 27, 2010, 06:14:04 AM »

Yeah, I was afraid you would say that.

Bummer.

(I want to stay away from soft returns, as they're not dynamic in the way non-breaking spaces are when text runs/rewraps.)

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!