!11 Can't apply preserveSpace to an attribute
From: @linker99 Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
f6ceb5aa33
25
fix-Cannot-apply-preserveSpace-to-an-attribute.patch
Normal file
25
fix-Cannot-apply-preserveSpace-to-an-attribute.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 45a43928cee0015b0361b021c914ef75ffe58e96 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?A=CC=81lvaro=20Mun=CC=83oz?= <alvaro.munoz@gmail.com>
|
||||||
|
Date: Sat, 18 Aug 2018 17:34:36 -0300
|
||||||
|
Subject: [PATCH] Fix Can't apply preserveSpace to an attribute
|
||||||
|
|
||||||
|
---
|
||||||
|
itstool.in | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
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)
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,11 +1,12 @@
|
|||||||
Name: itstool
|
Name: itstool
|
||||||
Version: 2.0.4
|
Version: 2.0.4
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: ITS-based XML translation tool
|
Summary: ITS-based XML translation tool
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://itstool.org/
|
URL: http://itstool.org/
|
||||||
Source0: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
|
Source0: http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
|
||||||
Patch0: fix-segfaults.patch
|
Patch0: fix-segfaults.patch
|
||||||
|
Patch1: fix-Cannot-apply-preserveSpace-to-an-attribute.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-libxml2 python3-devel git
|
BuildRequires: python3-libxml2 python3-devel git
|
||||||
@ -42,5 +43,8 @@ export PYTHON=%{__python3}
|
|||||||
%doc %{_mandir}/man1/itstool.1.gz
|
%doc %{_mandir}/man1/itstool.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 20 2023 fandehui fandehui@xfusion.com - 2.0.4-6
|
||||||
|
- fix Can't apply preserveSpace to an attribute
|
||||||
|
|
||||||
* Tue Dec 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.4-5
|
* Tue Dec 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.4-5
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user