diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-11 08:44:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-11 08:44:34 +0200 |
commit | 26a99d68971351198c58e5980d07804d8153bfaf (patch) | |
tree | 69d82ae5aa3d492547beed5c91d5c5fa7dfd6ea4 /cli/context.cxx | |
parent | 4d02432c918d9ce431bf6c3e3d2b7410093dfbb5 (diff) |
Remove empty <th> from preface TOC entries
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; } |