aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-07-24 11:29:36 +0200
committerGaëtan Gilbert2020-07-24 12:02:14 +0200
commite140848fd50a49aab7810eb369c9e14efe20f2d6 (patch)
tree86bdab378abca78ed7f45fb8cbcf86ba15909b11 /tools
parent63c216d662647f701daae5e20c5af6ba3e38e3da (diff)
Fix coqdoc bad bulleting from incorrect space count
Fix #12742
Diffstat (limited to 'tools')
-rw-r--r--tools/coqdoc/cpretty.mll2
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