Widont

voidberg - August 4, 2007 - 20:47

This module solves the widow problem using a client-side approach using jQuery. In typesetting, a widow is a single word on a line by itself at the end of a paragraph and is considered bad style.

It was inspired by Shaun Inman's work and uses a modified version of jQuery-Widon't by Dave Cardwell.

The module performs transformations on all the elements which match the following rules:
- #content h1.title
- #content h2.node-title a

I will add the possibility to define the classes yourself soon.

If you don't want to implement the solution with Javascript, I wrote a tutorial on how you can implement it using php here: http://voidberg.org/blog/solving_the_widow_problem_on_your_drupal_websit...

Releases

Official releasesDateSizeLinksStatus
5.x-1.02007-Aug-066.44 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
5.x-1.x-dev2007-Aug-056.42 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.