Skip to content

Commit 1809008

Browse files
Minor tree inspection code cleanup
1 parent e833fb0 commit 1809008

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/XML-Parser-Tools/XMLNode.extension.st

+8-10
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ XMLNode >> inspectTreeIn: specBuilder [
1818
^ specBuilder newTree
1919
roots: roots;
2020
display: [ :aNode | self inspectorTreeStringFor: aNode ];
21-
" displayIcon: [ :aNode | aNode iconName ifNotNil: [ :aName | self iconNamed: aName ] ];"
21+
" displayIcon: [ :aNode | aNode iconName ifNotNil: [ :aName | self iconNamed: aName ] ];"
2222
children: [ :aNode | aNode elements ];
2323
expandRoots
2424
]
@@ -38,14 +38,12 @@ XMLNode >> inspectorTreeStringFor: anXMLElement [
3838
nextPut: $<;
3939
nextPutAll: anXMLElement name.
4040
anXMLElement hasAttributes ifTrue: [
41-
s space.
42-
anXMLElement attributes associations
43-
do: [ :association |
44-
s
45-
nextPutAll: association key;
46-
nextPutAll: '="';
47-
nextPutAll: association value;
48-
nextPutAll: '"' ]
49-
separatedBy: [ s space ] ].
41+
anXMLElement attributes associations do: [ :association |
42+
s
43+
space;
44+
nextPutAll: association key;
45+
nextPutAll: '="';
46+
nextPutAll: association value;
47+
nextPutAll: '"' ] ].
5048
s nextPut: $> ]
5149
]

0 commit comments

Comments
 (0)