# HG changeset patch # User Richard M. Stallman # Date 789431426 0 # Node ID e27c01c37cb9b154ac239c14268604002b9ffa06 # Parent a4b616f7745c13b5142fac3ffb61f7ef10e58289 (C_entries): Ignore carriage return at end of line. diff -r a4b616f7745c -r e27c01c37cb9 lib-src/etags.c --- a/lib-src/etags.c Fri Jan 06 22:08:23 1995 +0000 +++ b/lib-src/etags.c Fri Jan 06 22:30:26 1995 +0000 @@ -1973,6 +1973,9 @@ c = *lp++; if (c == '\\') { + /* deal with \r (13) at end of msdos lines */ + if ((*lp =='\r')&&(*(lp+1)=='\0')) + *lp = '\0'; /* If we're at the end of the line, the next character is a '\0'; don't skip it, because it's the thing that tells us to read the next line. */