summaryrefslogtreecommitdiff
path: root/inputs/errors2.but
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2001-10-25 19:28:43 +0000
committerSimon Tatham <anakin@pobox.com>2001-10-25 19:28:43 +0000
commit3e043306f1594f7528788a1c593995b391fc7a5a (patch)
tree614dbae4b9d0b18ffaed645887e8243c21c809a7 /inputs/errors2.but
parentdd9eaf09d344a4b18b2750cef08795a097891c08 (diff)
downloadhalibut-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 'inputs/errors2.but')
-rw-r--r--inputs/errors2.but5
1 files changed, 5 insertions, 0 deletions
diff --git a/inputs/errors2.but b/inputs/errors2.but
new file mode 100644
index 0000000..b1a3303
--- /dev/null
+++ b/inputs/errors2.but
@@ -0,0 +1,5 @@
+\H{outofplace} Heading out of place.
+
+\C{chap} Chapter is fine
+
+\S{subsect} Subsection should have heading before it.