8000 Update transitive.rb by Beagle123 · Pull Request #230 · ruby/rexml · GitHub
[go: up one dir, main page]

Skip to content

Update transitive.rb #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update transitive.rb added #strip eliminated added newlines
This formatter was adding newline characters so the Text nodes grew every time you saved/wrote them.  Adding #strip fixes it.  I've been working with it and it works perfectly.
  • Loading branch information
Beagle123 authored Jan 7, 2025
commit 702b3ca83dec36b89715fd39f47bd080af43f307
2 changes: 1 addition & 1 deletion lib/rexml/formatters/transitive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Formatters
# results of formatting already formatted XML will be odd.
class Transitive < Pretty
def write_text( node, output )
output << node.to_s()
output << node.to_s().strip
end
end
end
Expand Down
Loading
0