diff options
| author | Simon Tatham <anakin@pobox.com> | 2009-01-20 18:34:41 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2009-01-20 18:34:41 +0000 |
| commit | 3db1d2fcfbee684656ff3543eb1a01bb9fe3f657 (patch) | |
| tree | fdd9747c08e574be164c7ccfcee2f8225176c0c5 /bk_text.c | |
| parent | 5ab3416297d59737f89412dcf2a5fd71e0d4d3e6 (diff) | |
| download | halibut-3db1d2fcfbee684656ff3543eb1a01bb9fe3f657.zip halibut-3db1d2fcfbee684656ff3543eb1a01bb9fe3f657.tar.gz halibut-3db1d2fcfbee684656ff3543eb1a01bb9fe3f657.tar.bz2 halibut-3db1d2fcfbee684656ff3543eb1a01bb9fe3f657.tar.xz | |
Use of \lcont in the document preamble caused an assertion failure.
Fix it.
[originally from svn r8421]
Diffstat (limited to 'bk_text.c')
| -rw-r--r-- | bk_text.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -311,7 +311,7 @@ void text_backend(paragraph *sourceform, keywordlist *keywords, word spaceword; textfile tf; wchar_t *prefixextra; - int nesting, nestindent; + int nesting, nestbase, nestindent; int indentb, indenta; IGNORE(unused); @@ -338,7 +338,8 @@ void text_backend(paragraph *sourceform, keywordlist *keywords, conf.atitle, conf.indent, conf.width, &conf); nestindent = conf.listindentbefore + conf.listindentafter; - nesting = (conf.indent_preambles ? 0 : -conf.indent); + nestbase = (conf.indent_preambles ? 0 : -conf.indent); + nesting = nestbase; /* Do the main document */ for (p = sourceform; p; p = p->next) switch (p->type) { @@ -356,7 +357,7 @@ void text_backend(paragraph *sourceform, keywordlist *keywords, break; case para_LcontPop: nesting -= nestindent; - assert(nesting >= 0); + assert(nesting >= nestbase); break; /* |