diff options
| author | msozeau | 2009-04-08 20:47:09 +0000 |
|---|---|---|
| committer | msozeau | 2009-04-08 20:47:09 +0000 |
| commit | f5cca358cd17a3f0aa9f9e4696d2366ad6df1841 (patch) | |
| tree | c9fc387f0087d51d45afaa8ab08fa47f844d2a1f | |
| parent | 870bc5c4badfa48556e473ad7b14c9d36b42d53d (diff) | |
Take formatted into account in rules for dot.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12072 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | tools/coqdoc/cpretty.mll | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/coqdoc/cpretty.mll b/tools/coqdoc/cpretty.mll index cf4d89a34a..bda18e03ca 100644 --- a/tools/coqdoc/cpretty.mll +++ b/tools/coqdoc/cpretty.mll @@ -712,8 +712,11 @@ and body = parse | nl+ space* "]]" { if not !formatted then begin symbol lexbuf (lexeme lexbuf); body lexbuf end else true } | eof { false } - | '.' space* nl | '.' space* eof { Output.char '.'; Output.line_break(); true } - | '.' space+ { Output.char '.'; Output.char ' '; false } + | '.' space* nl | '.' space* eof + { Output.char '.'; Output.line_break(); + if not !formatted then true else body_bol lexbuf } + | '.' space+ { Output.char '.'; Output.char ' '; + if not !formatted then false else body lexbuf } | '"' { Output.char '"'; ignore(notation lexbuf); body lexbuf } | "(*" { comment_level := 1; if !Cdglobals.parse_comments then Output.start_comment (); |
