diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-03-23 20:10:23 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-03-23 20:10:23 +0000 |
| commit | 6cba4fa3f6c02db9994d6b6234f2ae5007839a5d (patch) | |
| tree | a713c55ba681e428d4770a8c5172982d25a89208 /error.c | |
| parent | 6576379028db35e575cb6c855396706bad363521 (diff) | |
| download | halibut-6cba4fa3f6c02db9994d6b6234f2ae5007839a5d.zip halibut-6cba4fa3f6c02db9994d6b6234f2ae5007839a5d.tar.gz halibut-6cba4fa3f6c02db9994d6b6234f2ae5007839a5d.tar.bz2 halibut-6cba4fa3f6c02db9994d6b6234f2ae5007839a5d.tar.xz | |
Man-page back end for Halibut. Also, a couple of additional markup
features commonly used in man pages: (a) the ability to nest
paragraph breaks, code paragraphs and other lists inside list items,
and (b) description lists as normally used in man pages to describe
command-line options.
[originally from svn r3954]
Diffstat (limited to '')
| -rw-r--r-- | error.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -119,6 +119,11 @@ static void do_error(int code, va_list ap) { sprintf(error, "unclosed braces at end of paragraph"); flags = FILEPOS; break; + case err_missingrbrace2: + fpos = *va_arg(ap, filepos *); + sprintf(error, "unclosed braces at end of input file"); + flags = FILEPOS; + break; case err_nestedstyles: fpos = *va_arg(ap, filepos *); sprintf(error, "unable to nest text styles"); @@ -184,6 +189,16 @@ static void do_error(int code, va_list ap) { sprintf(error + strlen(error), "%s:%d", fpos2.filename, fpos2.line); flags = FILEPOS; break; + case err_misplacedlcont: + fpos = *va_arg(ap, filepos *); + sprintf(error, "\\lcont is only expected after a list item"); + flags = FILEPOS; + break; + case err_sectmarkerinlcont: + fpos = *va_arg(ap, filepos *); + sprintf(error, "section headings are not supported within \\lcont"); + flags = FILEPOS; + break; case err_whatever: sp = va_arg(ap, char *); vsprintf(error, sp, ap); |