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=339a9aeecfc58c33da0ccf09268dfa4dab413582;hpb=2aa295aa37f8fb274f7b640f7627078d9435cefa;p=helm.git diff --git a/helm/www/lambdadelta/bin/xhtbl/textUnparser.ml b/helm/www/lambdadelta/bin/xhtbl/textUnparser.ml index 339a9aeec..cf7724cdd 100644 --- a/helm/www/lambdadelta/bin/xhtbl/textUnparser.ml +++ b/helm/www/lambdadelta/bin/xhtbl/textUnparser.ml @@ -44,6 +44,10 @@ 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 @@ -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