diff options
| -rw-r--r-- | error.c | 5 | ||||
| -rw-r--r-- | halibut.h | 1 | ||||
| -rw-r--r-- | input.c | 2 | ||||
| -rw-r--r-- | inputs/test.but | 2 |
4 files changed, 2 insertions, 8 deletions
@@ -278,11 +278,6 @@ static void do_error(int code, va_list ap) { flags = FILEPOS; sfree(sp); break; - case err_emptypara: - fpos = *va_arg(ap, filepos *); - sprintf(error, "found no text in paragraph"); - flags = FILEPOS; - break; case err_whatever: sp = va_arg(ap, char *); vsprintf(error, sp, ap); @@ -244,7 +244,6 @@ enum { err_text_codeline, /* \c line too long in text backend */ err_htmlver, /* unrecognised HTML version keyword */ err_charset, /* unrecognised character set name */ - err_emptypara, /* paragraph contains no actual text */ err_whatever /* random error of another type */ }; @@ -1539,8 +1539,6 @@ static void read_file(paragraph ***ret, input *in, indexdata *idx, */ if (par.words) { addpara(par, ret); - } else { - error(err_emptypara, &par.fpos); } if (t.type == tok_eof) already = TRUE; diff --git a/inputs/test.but b/inputs/test.but index 4682d5f..2088de4 100644 --- a/inputs/test.but +++ b/inputs/test.but @@ -43,6 +43,8 @@ has line\#{yet another one} breaks in between words, multiple spaces (ignored), and \e{emphasised text} as well as \c{code fragments}. +\#{This is an inline comment alone in a paragraph.} + \cw{This} is weak code; \cq{this} is quoted code. And \k{head} contains some other stuff. \K{subhead} does too. |