[AD] Increasing the character range of autoquotes for html output

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi.

Usually text quotes like `something' are used to indicate filenames in
documentation. Filenames tend to have dots in them, so this patch makes
those quotes to come in another font.

Index: docs/src/makedoc/makehtml.c
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/makedoc/makehtml.c,v
retrieving revision 1.25
diff -u -r1.25 makehtml.c
--- docs/src/makedoc/makehtml.c 5 Oct 2003 20:06:48 -0000       1.25
+++ docs/src/makedoc/makehtml.c 2 May 2004 20:27:04 -0000
@@ -714,7 +714,7 @@
         if (end) {
            char *p = string + 1;
            /* Check for a specific character range */
-           while ((p < end) && ((*p >= '0') && (*p <= 'z')))
+           while ((p < end) && ((*p >= '.') && (*p <= 'z')))
               p++;
                
            if ((p == end) && (p - string > 1)) {




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/