let print oc g =
  if !gen_page then
    page oc !css_style g.group_title print_group g
  else
    print_group oc g