Actions
Backport #4497
closedREXML Pretty formater does use specified 'width' to wrap lines
Status:
Closed
Assignee:
-
Description
=begin
REXML::Formatters::Pretty has 'width' attribute used to wrap lines. This is not used when the wrap method is invoked
pretty.rb - line 86¶
def write_text( node, output )
s = node.to_s()
s.gsub!(/\s/,' ')
s.squeeze!(" ")
s = wrap(s, 80-@level) ## HERE - 80 is hard coded, value should depend on @width and @level (e.g. @width - @level)
s = indent_text(s, @level, " ", true)
output << (' '*@level + s)
end
=end
Files
Actions
Like0
Like0Like0