W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2008

Custom line-break requirement

From: JohnVirgo <john.virgo@document.co.uk>
Date: Thu, 21 Feb 2008 00:49:01 -0800 (PST)
Message-ID: <15606844.post@talk.nabble.com>
To: www-xsl-fo@w3.org

I've got an interesting problem that I've been struggling to find an answer

I need to produce some text in the form of an address block, which only line
breaks on ',' characters not on ' ' characters.

I.e. Currently I get:
1234 Thingy drive, New York, New
York, Some county, AC 0DE

Where I want address elements to stay together:
1234 Thingy drive, New York,
New York, Some county,

I've tried several techniques to no avail:
keep-together attribute doesn't seem to have a way to override the logic to
do this.
Inserted a white printable char for each space, still gets treated as a
place to break.
Can't reliably calculate line width of manual breaking with a variable width
font by char count.

Any ideas?

Thanks, JV
View this message in context: http://www.nabble.com/Custom-line-break-requirement-tp15606844p15606844.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Thursday, 21 February 2008 08:49:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:31 UTC