Skip to content

0.15.0

Pre-release
Pre-release

Choose a tag to compare

@pmjones pmjones released this 09 May 01:21
· 264 commits to 0.x since this release
  • Make line control more explicit.

    • Remove Printable::$hasAttribute, $hasComment, $isFirst, hasAttribute(),
      hasComment(), and isFirst().

    • Remove Styler::$atFirstInBody, $hadComment, $hadAttribute,
      forceSingleNewline(), maybeDoubleNewline(), and rtrim().

    • The Line object now tracks if a margin above or below is advised for
      addition, and if a margin above or below is allowed.

    • The Styler methods now specify margin additions and allowances on the
      current Line object.

  • Protect various Styler methods that were mistakenly public.

  • Add method Styler::blankLine() to create new Line instances.

  • Rename Line::newline() to Line::blankLine().

  • Styler::newline() now applies one line of margin above and below auto-split
    lines, subject to margin allowances; updated tests to reflect this
    expectation.

  • Fix a logic-breaking bug where final else gets lost after else if
    (refs #4).