Skip to content

Commit

Permalink
avoid duplicate #withBlanksTrimmed
Browse files Browse the repository at this point in the history
  • Loading branch information
LinqLover committed Nov 26, 2023
1 parent d763eb4 commit 44bd868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ basicVisitRoot: node
oldNode := nodeStack top.
self stream contents withBlanksTrimmed ifNotEmpty: [:text |
self assert: oldNode text isNil.
oldNode text: text withBlanksTrimmed]].
oldNode text: text]].
self flag: #todo. "requires SOH to be not a separator!"

^ result
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"class" : {
"example" : "ct 11/25/2023 20:23" },
"instance" : {
"basicVisitRoot:" : "ct 11/24/2023 19:05",
"basicVisitRoot:" : "ct 11/26/2023 20:21",
"basicVisitText:" : "ct 11/26/2023 19:48",
"book" : "ct 11/8/2023 23:05",
"commandAppendix:" : "ct 11/25/2023 19:31",
Expand Down

0 comments on commit 44bd868

Please sign in to comment.