openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #17720
[Bug 1066320] Re: Importing OpenLyrics songs preserves white space around lines
A little bit more research:
http://lxml.de/FAQ.html
Parsing and Serialisation
Why doesn't the pretty_print option reformat my XML output?
"Pretty printing (or formatting) an XML document means adding white
space to the content. These modifications are harmless if they only
impact elements in the document that do not carry (text) data. They
corrupt your data if they impact elements that contain data. If lxml
cannot distinguish between whitespace and data, it will not alter your
data. Whitespace is therefore only added between nodes that do not
contain data."
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1066320
Title:
Importing OpenLyrics songs preserves white space around lines
Status in OpenLP - Worship Presentation Software:
Confirmed
Bug description:
The OpenLyrics song format doesn't seem to include white space around
content within the <lines> tag. Example from
http://openlyrics.info/dataformat.html#song-lyrics:
<lines>
Amazing grace, how sweet the sound<br/>
That saved a wretch like me!<br/>
I once was lost, but now am found,<br/>
Was blind but now I see.<br/>
</lines>
OpenLP includes all white space (spaces and line breaks) instead of
trimming the lines, so when importing for example OpenLyrics sample
songs there is more spaces and line breaks than one would expect.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1066320/+subscriptions
References