diff options
| author | Simon Tatham <anakin@pobox.com> | 2001-10-25 19:28:43 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2001-10-25 19:28:43 +0000 |
| commit | 3e043306f1594f7528788a1c593995b391fc7a5a (patch) | |
| tree | 614dbae4b9d0b18ffaed645887e8243c21c809a7 /main.c | |
| parent | dd9eaf09d344a4b18b2750cef08795a097891c08 (diff) | |
| download | halibut-3e043306f1594f7528788a1c593995b391fc7a5a.zip halibut-3e043306f1594f7528788a1c593995b391fc7a5a.tar.gz halibut-3e043306f1594f7528788a1c593995b391fc7a5a.tar.bz2 halibut-3e043306f1594f7528788a1c593995b391fc7a5a.tar.xz | |
Enforce proper ordering of heading levels: specifically, ensure the
user doesn't skip a heading level (\H before any \C or \A, or \S
straight after \C with no intervening \H). The precise criterion is
that when creating section a.b.c.d, sections a.b.c, a.b and a should
already exist. This ensures the section tree really is a properly
formed tree with no missing nodes.
[originally from svn r1329]
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -197,6 +197,8 @@ int main(int argc, char **argv) { sfree(infiles); keywords = get_keywords(sourceform); + if (!keywords) + exit(EXIT_FAILURE); gen_citations(sourceform, keywords); subst_keywords(sourceform, keywords); |