summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Guesdon <maxence.guesdon@inria.fr>2002-08-08 13:10:07 +0000
committerMaxence Guesdon <maxence.guesdon@inria.fr>2002-08-08 13:10:07 +0000
commitc8a0a1b6e4a178d6b2b4569890eada9644458b07 (patch)
treed43774c6e01df1068d9d06c79a60ffafb6e963f3
parent85904e8c171e681be2a55642c4a67d78939612f7 (diff)
nouveau style pour éviter les clashes avec paragraph
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5090 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--ocamldoc/ocamldoc.sty16
1 files changed, 11 insertions, 5 deletions
diff --git a/ocamldoc/ocamldoc.sty b/ocamldoc/ocamldoc.sty
index 008a7975b..481ce03b8 100644
--- a/ocamldoc/ocamldoc.sty
+++ b/ocamldoc/ocamldoc.sty
@@ -45,13 +45,19 @@
\let\dospecials\@new@specials
}
+\newenvironment {ocamldoclist}[1]
+ {\list{}{#1}\global \advance \@listdepth -\m@ne\raggedright\item[]\relax}
+ {\global \advance \@listdepth -\@ne
+ \ifvmode \edef \@tmp {\the\everypar}\ifx \@tmp \@empty
+ \else \leavevmode \global \@newlistfalse \fi \fi
+ \endlist}
+
\newenvironment{ocamldocdescription}
-{\list{}{\rightmargin0pt \topsep0pt}\raggedright\item\relax}
-{\endlist\medskip}
+ {\ocamldoclist{\parsep 0pt\rightmargin 0pt \topsep 0\topsep}}
+ {\medskip \endocamldoclist}
\newenvironment{ocamldoccomment}
-{\list{}{\leftmargin 2\leftmargini \rightmargin0pt \topsep0pt}\raggedright\item\relax}
-{\endlist}
-
+ {\ocamldoclist{\parsep 0pt\rightmargin 0pt \topsep 0\topsep}}
+ {\medskip \endocamldoclist}
\endinput