Issue Details (XML | Word | Printable)

Key: ROME-114
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: rome-issues
Reporter: martinkurz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
rome

select compact output or prettyPrint

Created: 13/Dec/08 10:18 AM   Updated: 05/Jan/09 02:12 PM   Resolved: 05/Jan/09 02:12 PM
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Time Tracking:
Not Specified

File Attachments: 1. Text File chooseFormat.patch (9 kB) 13/Dec/08 10:19 AM - martinkurz

Environment:

Operating System: All
Platform: All


Issuezilla Id: 114
Tags:
Participants: martinkurz, nicklothian and rome-issues


 Description  « Hide

Hi,

and i've got a last patch for today: i would like to be able to select the
output format when outputting a feed with SyndFeedOutput or WireFeedOutput
between compact format (no formatting whitespaces and newlines) and pretty-print
(better human readablity), so i patched the two output classes and added
additional output methods, allowing to choose between pretty-print (default) or
not. Because the added methods don't influence existing code at all (default ist
still prettyPrint, but you can call ie output(feed, writer, false) to get a
compact feed), this change shouldn't be any problem for existing code.

Greetings,

Martin



martinkurz added a comment - 13/Dec/08 10:19 AM

Created an attachment (id=27)
add methods to choose between pretty-print and compact format in Ouptuters


nicklothian added a comment - 05/Jan/09 02:10 PM

Looks to be a useful feature, and appears harmless so I will commit.


nicklothian added a comment - 05/Jan/09 02:12 PM

Patch committed