All Versions
4
Latest Version
0.3
Avg Release Cycle
69 days
Latest Release
1565 days ago

Changelog History

  • v0.3 Changes

    January 13, 2020
    • Add foldlChar to signature of HasChars [API change].
    • Use foldlChar in realLength. This avoids a stack overflow we were getting with long strings in the previous version (with foldrChar). See jgm/pandoc#6031.
    • Replace isBlank with isBreakable and improved startsWithBlank. Previously isBlank was used in the layout algorithm where what we really wanted was isBreakable.
    • Avoid unnecessary calculation in updateColumns.
    • Replace a right fold with a strict left fold.
    • Add strictness annotations in realLength and updateColumn.
  • v0.2 Changes

    October 23, 2019
    • Add instances for Doc: Data, Typeable, Ord, Read, Generic.
    • Add literal (like text, but polymorphic).
    • Change some IsString constraints to HasChars.
    • Add some default definitions for methods in HasChars.
    • Change offset and minOffset to be more efficient (in simple cases they no longer render and count line lengths).
    • Add updateColumn.
    • Fix problem with lblock/cblock/rblock when chop is invoked. This caused very strange behavior in which text got reversed in certain circumstances.
  • v0.2.0.1 Changes

    October 31, 2019
    • Made realLength smarter about combining characters. If a string starts with a combining character, that character takes up a width of 1; if the combining character occurs after another character, it takes 0. See jgm/pandoc#5863.
    • Improve isBlank, re-use in rendering code for BreakingSpace.
    • Fixed incorrect Text width in renderig blocks.
  • v0.1 Changes

    August 23, 2019
    • Initial release.