From: Enrico Tassi Date: Mon, 5 Jan 2009 16:06:53 +0000 (+0000) Subject: expand ligatures after \n too X-Git-Tag: make_still_working~4291 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=96a8f10324c1358a82f5085dcaf3a30a7cbec390;p=helm.git expand ligatures after \n too --- diff --git a/helm/software/matita/matitaGui.ml b/helm/software/matita/matitaGui.ml index 8117947d1..ded9c83aa 100644 --- a/helm/software/matita/matitaGui.ml +++ b/helm/software/matita/matitaGui.ml @@ -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 _ =