Releases: opencastsoftware/prettier4j
Releases · opencastsoftware/prettier4j
0.3.2
- Add
Doc.alignthat aligns subsequent line breaks to the current line position by @DavidGregory084 in #155
0.3.1
- Added
Doc.marginto enable prefixing the lines of aDocwith a margin document. - Added
Doc.wrapTextto enable efficient line wrapping ofStrings. - Added
Doc.linkto enable hyperlink escape sequences to be produced.
0.3.0
- Added support for document parameters via
Doc.paramand binding those parameters withDoc#bind. - Reworked rendering by creating a new
RenderingOptionsclass and builder to avoid adding any further overloads ofrender.
0.2.0
- Added support for ANSI styled text via
Doc.styledand the static methods of theStylesclass. - Enabled ANSI escape codes to be omitted by adding new overloads to
Doc.render. - Enabled rendering a
Docinto anAppendableoutput.
0.1.1
- Add
Doc.foldstatic methods, used to reduce aStreamorCollectionof documents into a newDocusing aBinaryOperator. - Add
Doc.interspersestatic methods, used to reduce aStreamorCollectionof documents into a singleDocseparated by a separator document. - Add
Doc#bracketoverloads 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.