]> matita.cs.unibo.it Git - helm.git/commitdiff
Nicer handling of automatic text insertion.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 20 Jul 2005 13:24:23 +0000 (13:24 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 20 Jul 2005 13:24:23 +0000 (13:24 +0000)
helm/matita/matitaScript.ml

index bd0441bc32f9f622629def426d9dece89716336f..7e4dcb9fc04e4200a8c00e15a77c02af7e617a37 100644 (file)
@@ -57,7 +57,7 @@ let prepend_text header base =
   if Pcre.pmatch ~rex:heading_nl_RE base then
     sprintf "\n%s%s" header base
   else
-    sprintf "%s\n%s" header base
+    sprintf "\n%s\n%s" header base
 
   (** creates a statement AST for the Goal tactic, e.g. "goal 7" *)
 let goal_ast n =
@@ -130,7 +130,7 @@ let eval_with_engine guistuff status user_goal parsed_text st =
     if DisambiguateTypes.Environment.is_empty new_aliases then
       parsed_text
     else
-      prepend_text ("\n" ^ DisambiguatePp.pp_environment new_aliases)
+      prepend_text (DisambiguatePp.pp_environment new_aliases)
         parsed_text
   in
   let new_text =