tests: adapt to use of standard odf prefixes

This commit is contained in:
Frédéric Péters 2017-09-15 17:37:13 +02:00
parent ab879ada51
commit a29a9d9c0d
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -30,7 +30,7 @@ from quixote.html import htmltext
from qommon import _
from qommon import get_logger
from qommon import ezt, ods
from qommon import ezt
from qommon.form import (SingleSelectWidget, WidgetList, CheckboxWidget,
StringWidget, UploadWidget, WysiwygTextWidget, Upload,
UploadedFile, UploadValidationError, VarnameWidget,
@ -457,7 +457,7 @@ class ExportToModel(WorkflowStatusItem):
current_tail = node.tail or ''
node.tail = None
as_str = ET.tostring(node).replace('\n\n',
2 * ('<nsa:line-break xmlns:nsa="%(ns)s"/>' % {'ns': ods.TEXT_NS}))
2 * ('<nsa:line-break xmlns:nsa="%(ns)s"/>' % {'ns': OO_TEXT_NS}))
as_node = ET.fromstring(as_str)
node.text = as_node.text
node._children = as_node._children