let size1 = countvar c var in
countterm size1 s) current_size l in
countterm size1 t
- | A.Ident(s,l) ->
+ | A.Ident(s,None) -> current_size + (String.length s)
+ | A.Ident(s,Some l) ->
List.fold_left
(fun c (v,t) -> countterm (c + (String.length v)) t)
(current_size + (String.length s)) l
| [(s,t)] ->
make_subst start_txt s t "]"
| (s,t)::tl ->
- (make_subst start_txt s t ";")@(make_substs " " tl) in
- make_substs "[" subst in
+ (make_subst start_txt s t ";")@(make_substs " " tl)
+ in
+ match subst with
+ | Some subst -> make_substs "[" subst
+ | None -> []
+ in
Box.V([], (* attr here or on Vbox? *)
[Box.Text(map_attributes attr,s);
Box.indent(Box.V([],subst))])