aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-07-24 14:44:23 +0200
committerEmilio Jesus Gallego Arias2020-07-24 14:44:23 +0200
commit55f4095fe3c366a9f310584a55e2dc0605e5409c (patch)
tree86bdab378abca78ed7f45fb8cbcf86ba15909b11 /tools
parent63c216d662647f701daae5e20c5af6ba3e38e3da (diff)
parente140848fd50a49aab7810eb369c9e14efe20f2d6 (diff)
Merge PR #12747: Fix coqdoc bad bulleting from incorrect space count
Reviewed-by: Lysxia Reviewed-by: ejgallego Ack-by: ppedrot
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