diff options
| author | Hugo Herbelin | 2020-11-05 16:17:37 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2020-11-14 22:55:47 +0100 |
| commit | 696df507b58800a7a6b52741fd4ed859aff7b1c3 (patch) | |
| tree | dff6216d09ee018319c27ca15472098f0502e039 /tools | |
| parent | 0b12bb8c03b0ac7cc8aa7578a8db8ca93ecd1fd0 (diff) | |
Coqdoc: we move a newline at a better place.
This does not affect the rendering but gives better structured
html/tex files.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/coqdoc/cpretty.mll | 2 | ||||
| -rw-r--r-- | tools/coqdoc/output.ml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/coqdoc/cpretty.mll b/tools/coqdoc/cpretty.mll index f2b6a3f38f..e5beab5d33 100644 --- a/tools/coqdoc/cpretty.mll +++ b/tools/coqdoc/cpretty.mll @@ -893,7 +893,7 @@ and doc indents = parse doc_bol lexbuf } | '*'* "*)" space* nl - { new_lines 1 lexbuf; true } + { new_lines 1 lexbuf; Output.char '\n'; true } | '*'* "*)" { false } | "$" diff --git a/tools/coqdoc/output.ml b/tools/coqdoc/output.ml index 57b2b6e620..a87dfb5b2e 100644 --- a/tools/coqdoc/output.ml +++ b/tools/coqdoc/output.ml @@ -734,7 +734,7 @@ module Html = struct let end_doc () = in_doc := false; stop_item (); - if not !raw_comments then printf "\n</div>\n" + if not !raw_comments then printf "</div>\n" let start_emph () = printf "<i>" |
