summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Richardson2020-09-28 12:03:26 +0100
committerAlex Richardson2020-09-28 12:03:26 +0100
commit263ffca94d22e1ff7ce32d8f6ba782b0fcacd0d7 (patch)
tree22ed74d8de1fb37f9438e8e2d0239dfbc7d3b138 /src
parent8bd1d46961b41cc643810fc028c4127279463c36 (diff)
LaTeX: Add newline after itemize and enumerate environments
Diffstat (limited to 'src')
-rw-r--r--src/latex.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/latex.ml b/src/latex.ml
index 3804d07b..381fc649 100644
--- a/src/latex.ml
+++ b/src/latex.ml
@@ -261,11 +261,11 @@ let latex_of_markdown str =
| (Ul list | Ulp list) ->
"\\begin{itemize}\n\\item "
^ Util.string_of_list "\n\\item " format list
- ^ "\n\\end{itemize}"
+ ^ "\n\\end{itemize}\n"
| (Ol list | Olp list) ->
"\\begin{enumerate}\n\\item "
^ Util.string_of_list "\n\\item " format list
- ^ "\n\\end{enumerate}"
+ ^ "\n\\end{enumerate}\n"
| H1 header -> "\\section*{" ^ (format header) ^ "}\n"
| H2 header -> "\\subsection*{" ^ (format header) ^ "}\n"
| H3 header -> "\\subsubsection*{" ^ (format header) ^ "}\n"