diff options
| author | Gaëtan Gilbert | 2020-07-24 11:29:36 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-07-24 12:02:14 +0200 |
| commit | e140848fd50a49aab7810eb369c9e14efe20f2d6 (patch) | |
| tree | 86bdab378abca78ed7f45fb8cbcf86ba15909b11 /tools | |
| parent | 63c216d662647f701daae5e20c5af6ba3e38e3da (diff) | |
Fix coqdoc bad bulleting from incorrect space count
Fix #12742
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/coqdoc/cpretty.mll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/coqdoc/cpretty.mll b/tools/coqdoc/cpretty.mll index aa3c5b9d3b..b801a3b06e 100644 --- a/tools/coqdoc/cpretty.mll +++ b/tools/coqdoc/cpretty.mll @@ -728,7 +728,7 @@ and doc_bol = parse else Output.section lev (fun () -> ignore (doc None (from_string s))); if eol then doc_bol lexbuf else doc None lexbuf } - | (space_nl* as s) ('-'+ as line) + | ((space_nl* nl)? as s) (space* '-'+ as line) { let nl_count = count_newlines s in match check_start_list line with | Neither -> backtrack_past_newline lexbuf; Lexing.new_line lexbuf; doc None lexbuf |
