[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Config file reader [PATCH]
From: |
Ilya Zakharevich |
Subject: |
lynx-dev Config file reader [PATCH] |
Date: |
Sun, 22 Nov 1998 20:42:06 -0500 (EST) |
Lynx tolerates *some* whitespace in the config file, but doesn't
tolerate some other. This is very confusing. Patch follows.
Enjoy,
Ilya
--- ./src/LYReadCFG.c~ Tue Nov 10 14:47:38 1998
+++ ./src/LYReadCFG.c Sun Nov 22 20:35:34 1998
@@ -1077,6 +1077,10 @@ PUBLIC void read_cfg ARGS4(
/* skip past colon, but replace ':' with 0 to make name meaningful */
*value++ = 0;
+ /* Allow spaces around ':' */
+ LYTrimTrailing(name);
+ value = LYSkipBlanks(value);
+
/*
* Trim off any trailing comments.
*
@@ -1090,6 +1094,7 @@ PUBLIC void read_cfg ARGS4(
cp--;
if (isspace ((unsigned char) *cp))
*cp = 0;
+ LYTrimTrailing(value); /* Trim again */
}
tbl = Config_Table;
- lynx-dev Config file reader [PATCH],
Ilya Zakharevich <=
Re: lynx-dev Config file reader [PATCH], dickey, 1998/11/24
Re: lynx-dev Config file reader [PATCH], Nelson Henry Eric, 1998/11/25