diff options
author | Loïc Hoguin <[email protected]> | 2016-12-02 16:41:03 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-12-02 16:41:03 +0100 |
commit | 48cbfe8b60f3e555acd2d623db10e4eb56234179 (patch) | |
tree | e90874b02cac0235ae3894c32dc183b20842faf9 | |
parent | 7f79c99802044502da613365f3827164af4a5d9e (diff) | |
download | asciideck-48cbfe8b60f3e555acd2d623db10e4eb56234179.tar.gz asciideck-48cbfe8b60f3e555acd2d623db10e4eb56234179.tar.bz2 asciideck-48cbfe8b60f3e555acd2d623db10e4eb56234179.zip |
Fix a small issue with labeled lists
-rw-r--r-- | src/asciideck_parser.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/asciideck_parser.erl b/src/asciideck_parser.erl index 9755d29..8016395 100644 --- a/src/asciideck_parser.erl +++ b/src/asciideck_parser.erl @@ -214,7 +214,8 @@ p1_text(Lines=[{LN, Line}|Tail], AST, St) -> Size = byte_size(Text0) - 1, << Text:Size/binary, _ >> = Text0, {Tail1, Glob} = p1_ll_glob([{LN, Text}|Tail]), - p1(Tail1, [{label, Label, p1(Glob, [], St), ann(LN, St)}|AST], St); + %% Text on the same line is necessarily a paragraph I believe. + p1_p(Tail1, [{label, Label, p1(Glob, [], St), ann(LN, St)}|AST], St, LN, []); %% Not a labeled list. _ -> p1_maybe_p(Lines, AST, St) |