summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-05-17 12:39:16 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-05-17 12:39:16 +0000
commite467ebc5c93c3624445f5edda83561ee4dc02243 (patch)
tree42aeca5887e687643f691e2e1a4714ef0409557b
parent63c66f03f63dff85682274d58c854cd1ba34b01a (diff)
handle ^L lines correctly.
-rw-r--r--mkjtags.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mkjtags.c b/mkjtags.c
index bfc8f673..a8106c0d 100644
--- a/mkjtags.c
+++ b/mkjtags.c
@@ -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, ',')))