Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a5d56f8b authored by Guillaume Melquiond's avatar Guillaume Melquiond
Browse files

Fix unbalanced output when a transformation has no subgoals.

parent 15acb65c
No related branches found
No related tags found
No related merge requests found
......@@ -174,13 +174,16 @@ let rec num_lines acc tr =
fprintf fmt "<td style=\"background-color:#E0E0E0\"></td>"
done;
fprintf fmt "</tr>@\n";
fprintf fmt "<tr><td rowspan=\"%d\">&nbsp;&nbsp;</td>" (num_lines 0 tr);
let nl = num_lines 0 tr in
if nl > 0 then begin
fprintf fmt "<tr><td rowspan=\"%d\">&nbsp;&nbsp;</td>" nl;
let (_:bool) = List.fold_left
(fun needs_tr g ->
print_goal fmt needs_tr (depth+1) max_depth provers g;
true)
false tr.transf_goals
in ()
end
and print_goal fmt needs_tr depth max_depth provers g =
if needs_tr then fprintf fmt "<tr>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment