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
203495aa
Commit
203495aa
authored
Sep 17, 2017
by
Eckhart Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small adjustments
parent
700c2983
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
DHParser/syntaxtree.py
DHParser/syntaxtree.py
+3
-0
No files found.
DHParser/syntaxtree.py
View file @
203495aa
...
...
@@ -438,6 +438,9 @@ class Node(collections.abc.Sized):
src: The source text or `None`. In case the source text is
given the position of the element in the text will be
reported as line and column.
compact: If True a compact representation is returned where
brackets are ommited and only the indentation indicates the
tree structure.
"""
lB
,
rB
,
D
=
(
''
,
''
,
1
)
if
compact
else
(
'('
,
'
\n
)'
,
0
)
...
...
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