diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-05-17 12:39:16 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-05-17 12:39:16 +0000 |
commit | e467ebc5c93c3624445f5edda83561ee4dc02243 (patch) | |
tree | 42aeca5887e687643f691e2e1a4714ef0409557b | |
parent | 63c66f03f63dff85682274d58c854cd1ba34b01a (diff) |
handle ^L lines correctly.
-rw-r--r-- | mkjtags.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -68,8 +68,11 @@ void doit (const char *fname, char *prefix, int crlf_pending) { l = strlen (buffer); - if (*buffer == '\f' && !crlf_pending) - fputs (buffer, stdout); + if (*buffer == '\f') + { + if (!crlf_pending) + fputs (buffer, stdout); + } else if (crlf_pending && l > 9 && !strcmp (buffer + l - 9, ",include\n")) { if ((cp = strrchr (buffer, ','))) |