mfrasca (Michael Frasca)
- Login: mfrasca
- Email: michael.frasca@gmail.com
- Registered on: 03/13/2011
- Last sign in: 04/27/2013
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
03/25/2011
-
06:23 AM Ruby Bug #4498: REXML Pretty formater does use specified 'width' to wrap lines
- =begin
REXML::Formatters::Pretty has 'width' attribute used to wrap lines.
This is not used when the wrap method is invoked.
The pretty formatter within the REXML library is used to nicely indent
xml files for viewing. I use this f...
03/14/2011
-
03:02 AM Ruby Bug #4498: REXML Pretty formater does use specified 'width' to wrap lines
- =begin
Patch attached for 'lib/rexml/formatters/pretty.rb'. @width attribute is used to compute line width when wrapping text output. @level is subtracted from @width to account for indenting of current xml node.
-Michael Frasca
...
03/13/2011
-
04:58 AM Ruby Bug #4498 (Closed): REXML Pretty formater does use specified 'width' to wrap lines
- =begin
REXML::Formatters::Pretty has 'width' attribute used to wrap lines. This is not used when the wrap method is invoked
# pretty.rb
def write_text( node, output )
s = node.to_s()
s.gsub!(/\s/,' ')
s.squeeze!(" ")
...