]> matita.cs.unibo.it Git - helm.git/commitdiff
check on baseuri
authorEnrico Tassi <enrico.tassi@inria.fr>
Wed, 6 Jul 2005 15:03:41 +0000 (15:03 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Wed, 6 Jul 2005 15:03:41 +0000 (15:03 +0000)
helm/matita/matita.ma.templ
helm/matita/matitaEngine.ml

index 157c010d11ffb7b7183bb12971c6857a1c3f8b2f..4fa107ce00eb641a3849cf1d182e6c15d1d3ad40 100644 (file)
@@ -12,5 +12,5 @@
 (*                                                                        *)
 (**************************************************************************)
 
-set "baseuri" "cic:/matita/<fill here>".
+set "baseuri" "cic:/matita/#fill here#".
 
index b20755d870bb4a87def160f7f57d05e9ee7c12e4..ebcf0538ac75030c6e71e9fffc961d3e5d2ccafd 100644 (file)
@@ -459,7 +459,11 @@ let eval_command status cmd =
   | TacticAst.Set (loc, name, value) -> 
       let value = 
         if name = "baseuri" then
-          MatitaMisc.strip_trailing_slash value
+          let v = MatitaMisc.strip_trailing_slash value in
+          try
+            ignore (String.index v ' ');
+            command_error "baseuri can't contain spaces"
+          with Not_found -> v
         else
           value
       in