X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fwww%2Flambdadelta%2Fbin%2Fxhtbl%2FtextUnparser.ml;h=cf7724cdd64c819f93a3efedef6ebed832c19280;hb=57ae1762497a5f3ea75740e2908e04adb8642cc2;hp=ece6949d920814fb15059a1431b66e182281797a;hpb=c0d87c3cdf879f61aa53e91f43580e9815ae7190;p=helm.git diff --git a/helm/www/lambdadelta/bin/xhtbl/textUnparser.ml b/helm/www/lambdadelta/bin/xhtbl/textUnparser.ml index ece6949d9..cf7724cdd 100644 --- a/helm/www/lambdadelta/bin/xhtbl/textUnparser.ml +++ b/helm/www/lambdadelta/bin/xhtbl/textUnparser.ml @@ -44,13 +44,17 @@ let css tc = let uri tu tx = P.sprintf "@\"%s\" \"%s\"" tu tx +let name tn = + P.sprintf "$\"%s\"" tn + + let text = function | T.Plain s -> P.sprintf "\"%s\"" s | T.Link (true, uri, s) -> P.sprintf "@(\"%s\" \"%s\")" uri s | T.Link (false, uri, s) -> P.sprintf "@@(\"%s\" \"%s\")" uri s let key = function - | T.Text sl -> S.concat " + " (L.map text sl) + | T.Text sl -> S.concat " ^ " (L.map text sl) | T.Glue None -> "*" | T.Glue (Some i) -> P.sprintf "%u" i @@ -62,8 +66,8 @@ let entry = function let open_table st t = let str = - P.sprintf "%s[{#%u: %s; %s; %s; %s}\n" - (indent st) t.T.ti (size t.T.ts) (border t.T.tb) (css t.T.tc) (uri t.T.tu t.T.tx) + P.sprintf "%s[{#%u: %s; %s; %s; %s; %s}\n" + (indent st) t.T.ti (size t.T.ts) (border t.T.tb) (css t.T.tc) (uri t.T.tu t.T.tx) (name t.T.tn) in st.out str; add st