]> git.wh0rd.org - fontconfig.git/blobdiff - doc/edit-sgml.c
Oops. Missing newline in .cvsignore
[fontconfig.git] / doc / edit-sgml.c
index d40c9b3808cc8a13428abb61d5660381c55486fe..407dd2c240cbb28dd6e4580261019b5ea884f648 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <ctype.h>
 
 typedef enum { False, True } Bool;
@@ -189,7 +190,7 @@ ReplaceRead (FILE *f)
        StringAdd (r->text, c);
     if (c == '@')
        ungetc (c, f);
-    while (StringLast (r->text) == '\n')
+    while (isspace (StringLast (r->text)))
        StringDel (r->text);
     return r;
 }