]> matita.cs.unibo.it Git - helm.git/commitdiff
expand ligatures after \n too
authorEnrico Tassi <enrico.tassi@inria.fr>
Mon, 5 Jan 2009 16:06:53 +0000 (16:06 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Mon, 5 Jan 2009 16:06:53 +0000 (16:06 +0000)
helm/software/matita/matitaGui.ml

index 8117947d11b5662c933ce4f833d059115bb6c3a6..ded9c83aa46dee4136af781f481d0a469321841c 100644 (file)
@@ -652,8 +652,8 @@ class gui () =
       connect_menu_item main#ligatureButton self#nextSimilarSymbol;
       ignore(source_buffer#connect#after#insert_text 
        ~callback:(fun iter str -> 
-          if main#menuitemAutoAltL#active && str = " " then 
-            ignore(self#expand_virtual_if_any iter " ")));
+          if main#menuitemAutoAltL#active && (str = " " || str = "\n") then 
+            ignore(self#expand_virtual_if_any iter str)));
       ignore (findRepl#findEntry#connect#activate find_forward);
         (* interface lockers *)
       let lock_world _ =