X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lib-src%2Fmake-docfile.c;h=4cbe8c21faa794c8841a6e404266e3b165fa3b75;hb=df635945e8e7accc3d0127777bac8f9a8f9edc40;hp=aeee24a58bc6e4c271a09efcd0dae8b3d2dae33a;hpb=dbf2768f7b146e97e37a27316f70bb313f1acf15;p=chise%2Fxemacs-chise.git.1 diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index aeee24a..4cbe8c2 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -477,6 +477,12 @@ write_c_args (FILE *out, const char *func, char *buff, int minargs, in_ident = 0; just_spaced = 0; } + /* If the character is carriage return, escape it for the C compiler. */ + else if (c == '\n') + { + putc('\\', out); + putc('\n', out); + } else if (c != ' ' || ! just_spaced) { if (c >= 'a' && c <= 'z')