diff options
Diffstat (limited to 'cli/context.cxx')
-rw-r--r-- | cli/context.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cli/context.cxx b/cli/context.cxx index 1b98322..711086b 100644 --- a/cli/context.cxx +++ b/cli/context.cxx @@ -1800,12 +1800,17 @@ format (semantics::scope& scope, string const& s, bool para) } } - // Save the heading number for later. - // + v += in + "<tr>"; + if (!n.empty ()) - heading_map[pi] = n; + { + v += "<th>" + n + "</th><td>"; + heading_map[pi] = n; // Save it for later. + } + else + v += "<td colspan=\"2\">"; - v += in + "<tr><th>" + n + "</th><td>" + pv; // No newline + v += pv; // No newline tocs.push_back (toc_entry (t)); break; } |