PIT CLI agenda sorting, FileIssue bug fixed.

* Fixed the bug in FileIssue where it would append a blank line to the body of
  an issue every time it wrote the issue to the file. Fixed by making the
  parser consume a line break before the property section.
* Fixed PIT CLI -D option sorting of issues so that it will sort issues by
  priority, then due date.
This commit is contained in:
Jonathan Bernard
2011-12-19 16:19:07 -06:00
parent 0441f3c510
commit 85753de955
7 changed files with 22 additions and 13 deletions

View File

@ -27,8 +27,8 @@ public class IssuePegParser extends BaseParser<Object> {
Rule PropertyBlock() {
return Sequence(push(makeNode()),
HorizontalRule(), OneOrMore(EOL), TableSeparator(), EOL,
OneOrMore(PropertyDefinition()), TableSeparator(),
EOL, HorizontalRule(), OneOrMore(EOL), TableSeparator(),
EOL, OneOrMore(PropertyDefinition()), TableSeparator(),
addToNode("extProperties", pop())); }
Rule PropertyDefinition() {