From 0f3147561c3558e2c6d5c0ec1d100ec746aa716e Mon Sep 17 00:00:00 2001 From: pboutill Date: Mon, 6 Aug 2012 15:25:16 +0000 Subject: Coqdoc inlined verbatim_char in latex Patch by Adam Chilipala. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15690 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tools/coqdoc/cpretty.mll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/coqdoc/cpretty.mll') diff --git a/tools/coqdoc/cpretty.mll b/tools/coqdoc/cpretty.mll index b96200091..3f780a57d 100644 --- a/tools/coqdoc/cpretty.mll +++ b/tools/coqdoc/cpretty.mll @@ -931,11 +931,11 @@ and escaped_html = parse | _ { Output.html_char (lexeme_char lexbuf 0); escaped_html lexbuf } and verbatim inline = parse - | nl ">>" space* nl { Output.verbatim_char '\n'; Output.stop_verbatim inline } - | nl ">>" { Output.verbatim_char '\n'; Output.stop_verbatim inline } + | nl ">>" space* nl { Output.verbatim_char inline '\n'; Output.stop_verbatim inline } + | nl ">>" { Output.verbatim_char inline '\n'; Output.stop_verbatim inline } | ">>" { Output.stop_verbatim inline } | eof { Output.stop_verbatim inline } - | _ { Output.verbatim_char (lexeme_char lexbuf 0); verbatim inline lexbuf } + | _ { Output.verbatim_char inline (lexeme_char lexbuf 0); verbatim inline lexbuf } and url = parse | "}}" { Output.url (Buffer.contents url_buffer) None; Buffer.clear url_buffer } -- cgit v1.2.3