Releases: opencastsoftware/prettier4j
Releases · opencastsoftware/prettier4j
0.3.1
0.3.0
- Added support for document parameters via
Doc.param
and binding those parameters withDoc#bind
. - Reworked rendering by creating a new
RenderingOptions
class and builder to avoid adding any further overloads ofrender
.
0.2.0
- Added support for ANSI styled text via
Doc.styled
and the static methods of theStyles
class. - Enabled ANSI escape codes to be omitted by adding new overloads to
Doc.render
. - Enabled rendering a
Doc
into anAppendable
output.
0.1.1
- Add
Doc.fold
static methods, used to reduce aStream
orCollection
of documents into a newDoc
using aBinaryOperator
. - Add
Doc.intersperse
static methods, used to reduce aStream
orCollection
of documents into a singleDoc
separated by a separator document. - Add
Doc#bracket
overloads which enable specification of the line separator document. This enables you to choose between (for example)Doc.lineOrEmpty()
andDoc.lineOrSpace()
when bracketing documents.
0.1.0
Initial release of this library, containing a basic port of the original paper's code.