openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #14361
[Bug 885874] Re: Song with mis matched formatting tags amends on render
Using a song
---[Verse:1]---
{g}aaa
[---]
aaa{/g}
I get this with trunk.
Traceback (most recent call last):
File "/home/timali/dev/projects/openlp/trunk/openlp/core/lib/mediamanageritem.py", line 503, in onClickPressed
self.onPreviewClick()
File "/home/timali/dev/projects/openlp/trunk/openlp/core/lib/mediamanageritem.py", line 526, in onPreviewClick
serviceItem = self.buildServiceItem()
File "/home/timali/dev/projects/openlp/trunk/openlp/core/lib/mediamanageritem.py", line 620, in buildServiceItem
if self.generateSlideData(serviceItem, item, xmlVersion, remote):
File "/home/timali/dev/projects/openlp/trunk/openlp/plugins/songs/lib/mediaitem.py", line 521, in generateSlideData
service_item.xml_version = self.openLyrics.song_to_xml(song)
File "/home/timali/dev/projects/openlp/trunk/openlp/plugins/songs/lib/xml.py", line 343, in song_to_xml
virtual_verse, tags_element)
File "/home/timali/dev/projects/openlp/trunk/openlp/plugins/songs/lib/xml.py", line 450, in _add_text_with_tags_to_lines
element = etree.XML(u'<lines>%s</lines>' % text)
File "lxml.etree.pyx", line 2723, in lxml.etree.XML (src/lxml/lxml.etree.c:52448)
File "parser.pxi", line 1573, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:79932)
File "parser.pxi", line 1445, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:78709)
File "parser.pxi", line 920, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:75083)
File "parser.pxi", line 564, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:71739)
File "parser.pxi", line 645, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:72614)
File "parser.pxi", line 585, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:71955)
XMLSyntaxError: Opening and ending tag mismatch: lines line 1 and tag, line 1, column 22
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/885874
Title:
Song with mis matched formatting tags amends on render
Status in OpenLP - Worship Presentation Software:
Confirmed
Bug description:
Create a song and have an opening tag only.
Save then add to preview.
BANG
Traceback (most recent call last):
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.mediaitem", line 374, in onEditClick
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.mediaitem", line 258, in onSongListLoad
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.core.lib.mediamanageritem", line 623, in buildServiceItem
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.mediaitem", line 509, in generateSlideData
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.xml", line 341, in song_to_xml
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\outPYZ1.pyz/openlp.plugins.songs.lib.xml", line 450, in _add_text_with_tags_to_lines
File "lxml.etree.pyx", line 2512, in lxml.etree.XML (src/lxml/lxml.etree.c:48057)
File "parser.pxi", line 1545, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71812)
File "parser.pxi", line 1417, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70608)
File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67148)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63824)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64745)
File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64088)
XMLSyntaxError: Opening and ending tag mismatch: tag line 1 and lines, line 1, column 368
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/885874/+subscriptions
References