Add escape possibility for everything.

master
Christoph Lohmann 2020-04-29 19:21:25 +02:00
parent e1ccb875a3
commit 0e58fcdb30
1 changed files with 8 additions and 1 deletions

View File

@ -132,7 +132,14 @@ main(void)
if (line[0] == '%') if (line[0] == '%')
continue; continue;
if (line[0] == '#' && line[1] == '#') { if (line[0] == '\\') {
if (line[1] == '\0')
continue;
/* ignore text before first header */
if (fp)
fprintesc(fp, line+1);
} else if (line[0] == '#' && line[1] == '#') {
if (fp) { if (fp) {
fclose(fp); fclose(fp);
fp = NULL; fp = NULL;