]> git.wh0rd.org - fontconfig.git/blobdiff - doc/edit-sgml.c
Clean up exported names in fontconfig.h.
[fontconfig.git] / doc / edit-sgml.c
index 2375140f80fdbea25fe93724331dbc9f0f32b5a6..3f3be53aaafd64a6e8e1d5bfb26781414ba67a8f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright © 2003 Keith Packard
+ * Copyright Â© 2003 Keith Packard
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -77,7 +77,7 @@ static void
 ReplaceDispose (Replace *r);
 
 static void
-Bail (char *format, char *arg);
+Bail (const char *format, const char *arg);
 
 static Replace *
 ReplaceRead (FILE *f);
@@ -249,7 +249,7 @@ ReplaceDispose (Replace *r)
 }
 
 static void
-Bail (char *format, char *arg)
+Bail (const char *format, const char *arg)
 {
     fprintf (stderr, "fatal: ");
     fprintf (stderr, format, arg);
@@ -294,6 +294,11 @@ ReplaceRead (FILE *f)
        ungetc (c, f);
     while (isspace (StringLast (r->text)))
        StringDel (r->text);
+    if (StringLast(r->text) == '%')
+    {
+       StringDel (r->text);
+       StringAdd (r->text, ' ');
+    }
     return r;
 }