← Back to team overview

openlp-core team mailing list archive

[Bug 1066320] Re: Importing OpenLyrics songs preserves white space around lines

 

I've looked in to this and according to wc3, the white space should be
kept! If I understand correctly

http://www.w3.org/TR/xml11/#sec-white-space
"An XML processor must always pass all characters in a document that are not markup through to the application. A validating XML processor must also inform the application which of these characters constitute white space appearing in element content."

Also:
http://www.w3schools.com/xml/xml_syntax.asp
See heading "White-space is Preserved in XML"

and interestingly should openlyrics use br tags?

See "XML Stores New Line as LF" on the same page.

** Changed in: openlp
       Status: In Progress => Confirmed

-- 
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