PR#5497: source code example copy-paste problem with single quote character

git-svn-id: http://caml.inria.fr/svn/ocamldoc/trunk@12142 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2012-02-09 18:09:20 +00:00
parent 7fd09ee1bb
commit 0aa5027923
2 changed files with 23 additions and 18 deletions

View File

@ -15,24 +15,28 @@
\def \@@@parinunderline {\@eunderline\@oldpar\@bunderline}
\def\@eunderline{\egroup\underline{\box0}}
\def\caml{
\bgroup
\flushleft
\parindent 0pt
\parskip 0pt
\let\do\@makeother\dospecials
\catcode`\^^M=\active
\catcode`\\=0
\catcode`\ \active
\frenchspacing
\@vobeyspaces
\let\@oldpar\par
\let\?\@camlinputline
\let\:\@camloutputline
\let\;\@camlblankline
\let\<\@bunderline
\let\>\@eunderline
\let\\\@camlbackslash
{\catcode`'=\active
\global\def\caml{
\bgroup
\flushleft
\parindent 0pt
\parskip 0pt
\let\do\@makeother\dospecials
\catcode`'=\active
\chardef'=13
\catcode`\^^M=\active
\catcode`\\=0
\catcode`\ \active
\frenchspacing
\@vobeyspaces
\let\@oldpar\par
\let\?\@camlinputline
\let\:\@camloutputline
\let\;\@camlblankline
\let\<\@bunderline
\let\>\@eunderline
\let\\\@camlbackslash
}
}
\def\endcaml{

View File

@ -49,6 +49,7 @@ int main(argc, argv)
transl['&'] = "{\\char38}";
transl['#'] = "\\#";
transl['%'] = "\\%";
transl['\''] = "{\\char13}";
inverbatim = 0;
incaml = 0;
inquote = 0;