summary refs log tree commit diff
path: root/doc/txt
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-09 15:47:52 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-09 15:47:52 -0500
commit7d377ed47ee3dc29a5344ba908e18ee2ff0d0ab1 (patch)
tree640bd8b4ab11ab2406a05a194422be81010b050c /doc/txt
parent7973a4486f47adaa0d8a69eaae4d689a47cec201 (diff)
downloadroux-7d377ed47ee3dc29a5344ba908e18ee2ff0d0ab1.tar.gz
trim verbatim items
Diffstat (limited to 'doc/txt')
-rw-r--r--doc/txt/txt.ml7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/txt/txt.ml b/doc/txt/txt.ml
index d2c4f27..1b467ef 100644
--- a/doc/txt/txt.ml
+++ b/doc/txt/txt.ml
@@ -111,12 +111,9 @@ let getverb lines idnt =
       pop lines;
       f (dedent l idnt :: ls)
     | _ ->
-      let ls =
-        if List.hd ls = ""
-          then List.tl ls
-          else ls in
       List.rev ls |>
-      String.concat "\n" in
+      String.concat "\n" |>
+      String.trim in
   f []
 
 let getpar lines idnt =