let css tc =
P.sprintf "\"%s\"" (S.concat " " tc)
+let text = function
+ | T.Plain s -> P.sprintf "\"%s\"" s
+ | T.Link (uri, s) -> P.sprintf "@(\"%s\" \"%s\")" uri s
+
let key = function
- | T.Text sl ->
- let map s = P.sprintf "\"%s\"" s in
- S.concat " + " (L.map map sl)
+ | T.Text sl -> S.concat " + " (L.map text sl)
| T.Glue None -> "*"
| T.Glue (Some i) -> P.sprintf "%u" i