Author Topic: Preventing widows, the continuing saga...  (Read 1702 times)

0 Members and 1 Guest are viewing this topic.

Offline AutoFetishist

  • Sr. Member
  • ****
  • Posts: 397
  • Karma: 2
  • Gender: Male
Preventing widows, the continuing saga...
« on: July 27, 2010, 07: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...

Offline cdms

  • Full Member
  • ***
  • Posts: 111
  • Karma: 6
  • Gender: Male
Re: Preventing widows, the continuing saga...
« Reply #1 on: July 27, 2010, 08: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.



Offline AutoFetishist

  • Sr. Member
  • ****
  • Posts: 397
  • Karma: 2
  • Gender: Male
Re: Preventing widows, the continuing saga...
« Reply #2 on: July 27, 2010, 09: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.)