Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5diff
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
erp5diff
Commits
9b5d0190
Commit
9b5d0190
authored
Oct 27, 2009
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve text gathering
parent
30f4a2fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
ERP5Diff.py
ERP5Diff.py
+1
-7
No files found.
ERP5Diff.py
View file @
9b5d0190
...
...
@@ -348,13 +348,7 @@ class ERP5Diff:
"""
Aggregate child text nodes of an element into a single string.
"""
text
=
''
if
not
self
.
_hasChildren
(
element
):
return
element
.
text
for
child
in
element
:
if
type
(
child
)
==
etree
.
_Element
:
text
+=
child
.
text
return
text
return
'%s'
%
element
.
xpath
(
'string(text())'
)
def
_removeStrictEqualsSubNodeList
(
self
,
old_list
,
new_list
):
"""Remove inside list all elements which are similar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment