A Java package for pretty-printing a text by deciding where to introduce line-breaks and indentation. A Java implementation of Derek Oppen\'s pretty printing algorithm. It is _not_ a pretty printer for Java code, though it could be used to write one.
Be the first to post a text review of Java Pretty Printer Library. Rate and review a project by clicking thumbs up or thumbs down in the right column.
The Layouter API was enhanced by the possibility to indicate from where block indentation should be counted: from the current position in the line, or from the indentation of the surrounding block. Layouter methods taking boolean parameters were deprecated in favor of versions that use enums. In the demo folder, there is now also an XML pretty printer that works with a DOM parser, to illustrate the difference between an actively traversing pretty printer and an event based one. The test.xml file was replaced by a smaller file that tests some of the interesting cases.
The Layouter API was enhanced by the possibility to indicate from where block indentation should be counted: from the current position in the line, or from the indentation of the surrounding block. Layouter methods taking boolean parameters were deprecated in favor of versions that use enums. In the demo folder, there is now also an XML pretty printer that works with a DOM parser, to illustrate the difference between an actively traversing pretty printer and an event based one. The test.xml file was replaced by a smaller file that tests some of the interesting cases.
Be the first person to add a text review.
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?
Thanks for your review!
Get credit for your review by logging in via OpenID. Click your account provider: