Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
badw-it
DHParser
Commits
7f0f2467
Commit
7f0f2467
authored
Feb 13, 2019
by
eckhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- DHParser/syntaxtree.py: bugfix
parent
fbc08ddc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
DHParser/syntaxtree.py
DHParser/syntaxtree.py
+1
-1
No files found.
DHParser/syntaxtree.py
View file @
7f0f2467
...
...
@@ -610,7 +610,7 @@ class Node: # (collections.abc.Sized): Base class omitted for cython-compatibil
txt
.
append
(
' line="%i" col="%i"'
%
line_col
(
line_breaks
,
node
.
pos
))
if
root
and
id
(
node
)
in
root
.
error_nodes
and
not
has_reserved_attrs
:
txt
.
append
(
' err="%s"'
%
''
.
join
(
str
(
err
).
replace
(
'"'
,
r
'\"'
)
for
err
in
root
.
get_error
(
node
)))
for
err
in
root
.
get_error
s
(
node
)))
if
node
.
tag_name
in
empty_tags
:
assert
not
node
.
result
,
(
"Node %s with content %s is not an empty element!"
%
(
node
.
tag_name
,
str
(
node
)))
...
...
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