Page 1 of 1

Removing whitespaces at the end of a line

Posted: Fri Jun 07, 2013 7:10 pm
by wisdom_tooth
Hi!
When transforming a text encoded according to TEI P5, how to remove whitespaces before a

Code: Select all

<lb break="no">
in case we're going to have a floating text output without linebreaks.

Code: Select all

<lb n="1"/>Lorem ipsum do
<lb n="2" break="no"/>lor sit amet,
The output is:

Code: Select all

Lorem ipsum do lor sit amet,
But it should be:

Code: Select all

 Lorem ipsum dolor sit amet,
We need this

Code: Select all

<lb break="no">
because we have two different layouts of one document: one as a floating text, the other as a line for line transcription.

Thanks!