summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁlvaro Muñoz <alvaro.munoz@gmail.com>2018-08-18 17:34:36 -0300
committerÁlvaro Muñoz <alvaro.munoz@gmail.com>2018-08-18 17:34:36 -0300
commit45a43928cee0015b0361b021c914ef75ffe58e96 (patch)
treeab230325f14eaf418eb19d701426823a822854b0
parent35138f8f3e208346914f5b11b9f6b230d0fa99aa (diff)
downloaditstool-45a43928cee0015b0361b021c914ef75ffe58e96.tar.gz
Fix #30
-rwxr-xr-xitstool.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/itstool.in b/itstool.in
index 80d26b7..9105443 100755
--- a/itstool.in
+++ b/itstool.in
@@ -1164,6 +1164,8 @@ class Document (object):
for attr in xml_attr_iter(node):
if self._its_translate_nodes.get(attr, 'no') == 'yes':
attr_msg = Message()
+ if self.get_preserve_space(attr):
+ attr_msg.set_preserve_space()
attr_msg.add_source('%s:%i' % (self._doc.name, node.lineNo()))
attr_msg.add_marker('%s/%s@%s' % (node.parent.name, node.name, attr.name))
attr_msg.add_text(attr.content)