X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fsyntax_extensions%2Futf8Macro.ml;h=36d6b175d713cd213ae540bdb9aa953e8f80efaf;hb=2365a412571f633fc85633b134a45cf5a8777efa;hp=e5fca10c48cc06e3a428865ea94190758f7cbc3f;hpb=58955ec841575330f0b429033264f9ec7df319f9;p=helm.git diff --git a/helm/software/components/syntax_extensions/utf8Macro.ml b/helm/software/components/syntax_extensions/utf8Macro.ml index e5fca10c4..36d6b175d 100644 --- a/helm/software/components/syntax_extensions/utf8Macro.ml +++ b/helm/software/components/syntax_extensions/utf8Macro.ml @@ -41,7 +41,10 @@ let unicode_of_tex s = with Macro_not_found _ -> s let tex_of_unicode s = + (*WARNING: the space below is a nbsp (0x00A0), not a normal space *) + if s = " " then Some "" + else try - "\\" ^ Hashtbl.find Utf8MacroTable.utf82macro s - with Not_found -> s + Some ("\\" ^ Hashtbl.find Utf8MacroTable.utf82macro s) + with Not_found -> None