Commit 9e8a8d0a authored by Sidnei da Silva's avatar Sidnei da Silva

- Strip final newline here when importing, otherwise it would not match...

 - Strip final newline here when importing, otherwise it would not match against a translation msgid (see: http://dev.plone.org/plone/ticket/8525)
parent 7a98bf45
......@@ -4,6 +4,9 @@ Products.DCWorkflow Changelog
2.2.0 (unreleased)
------------------
- Strip trailing newlines in order to properly match with a msgid when
translating transition descriptions.
- Workflow UI: Remove ancient cruft to accommodate the proprietary
(and long dead) base_cms product.
......
......@@ -1261,7 +1261,7 @@ def _coalesceTextNodeChildren( node, encoding=None ):
if encoding is not None:
joined = joined.encode( encoding )
return ''.join( [ line.lstrip() for line in joined.splitlines(True) ] )
return ''.join( [ line.lstrip() for line in joined.splitlines(True) ] ).rstrip()
def _extractDescriptionNode(parent, encoding=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment