]> gitweb.factorcode.org Git - factor.git/commit
help.markup: new logic for preventing accidental double blank lines
authorKeith Lazuka <klazuka@gmail.com>
Thu, 1 Oct 2009 17:12:54 +0000 (13:12 -0400)
committerKeith Lazuka <klazuka@gmail.com>
Thu, 1 Oct 2009 17:15:28 +0000 (13:15 -0400)
commit1a44b22f14a0af2474441e9bb49eaf680c26f0be
tree65b43683cada9cdd8ed3da6b32a8d45c33fb79f1
parent69829a534d36095d3d59a44fe5a65690611075aa
help.markup: new logic for preventing accidental double blank lines

$subsections emits a blank line after the final link so that subsequent span text is nicely spaced away from the group of links. Prior to this bug fix, if you were to put a $heading immediately after a $subsections element, there would be 2 blank lines between them. This fixes it so that there is only a single blank line between them.

I also added a bunch of unit tests for span, block, $heading and $nl layout interactions.
basis/help/markup/markup-tests.factor
basis/help/markup/markup.factor