[AD] Increasing the character range of autoquotes for html output |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Allegro developers mailing list <alleg-developers@xxxxxxxxxx>
- Subject: [AD] Increasing the character range of autoquotes for html output
- From: Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx>
- Date: Sun, 2 May 2004 22:29:47 +0200
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)) {