Skip to content

Releases: opencastsoftware/prettier4j

0.3.1

28 Jun 23:31
49e1262
Compare
Choose a tag to compare
  • Added Doc.margin to enable prefixing the lines of a Doc with a margin document.
  • Added Doc.wrapText to enable efficient line wrapping of Strings.
  • Added Doc.link to enable hyperlink escape sequences to be produced.

0.3.0

03 Jun 09:18
Compare
Choose a tag to compare
  • Added support for document parameters via Doc.param and binding those parameters with Doc#bind.
  • Reworked rendering by creating a new RenderingOptions class and builder to avoid adding any further overloads of render.

0.2.0

26 May 19:26
Compare
Choose a tag to compare
  • Added support for ANSI styled text via Doc.styled and the static methods of the Styles class.
  • Enabled ANSI escape codes to be omitted by adding new overloads to Doc.render.
  • Enabled rendering a Doc into an Appendable output.

0.1.1

10 Nov 18:42
4495023
Compare
Choose a tag to compare
  • Add Doc.fold static methods, used to reduce a Stream or Collection of documents into a new Doc using a BinaryOperator.
  • Add Doc.intersperse static methods, used to reduce a Stream or Collection of documents into a single Doc 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() and Doc.lineOrSpace() when bracketing documents.

0.1.0

31 Oct 16:12
4b475a4
Compare
Choose a tag to compare

Initial release of this library, containing a basic port of the original paper's code.