Subject: Re: [htdig3-dev] Re: htdig-3.1.4 prerelease
From: Gilles Detillieux (firstname.lastname@example.org)
Date: Wed Dec 08 1999 - 11:52:03 PST
According to Gilles Detillieux:
> According to Geoff Hutchison:
> > At 8:54 AM -0800 12/8/99, Joe R. Jah wrote:
> > >Bingo;) They were all in img alt text, in that particular search.
> > Phew! OK, barring any other showstoppers, I'll roll the release tomorrow!
> D'oh! I just found what I'd consider a showstopper. I was playing around
> with a patch to Display.cc, which made use of the QuotedStringList class,
> and found that if you end off with an empty quoted string, that string
> gets thrown out. I'll try to fix this pronto.
OK, here's the fix. It seems to do the job, and I've walk through the
code and don't see how it would break anything. (I could use more eyes,
Geoff, if it's OK, could you commit it to CVS and make the necessary
notations, please? I'm very late for lunch.
Joe, no need to archive this one as it should be in 3.1.4 (you could put
it under 3.1.3 and earlier patches, though).
--- htlib/QuotedStringList.cc.orig Tue Feb 16 23:03:56 1999
+++ htlib/QuotedStringList.cc Wed Dec 8 13:39:35 1999
@@ -76,6 +76,7 @@ int
QuotedStringList::Create(char *str, char *sep, int single)
char quote = 0;
+ int quoted = 0;
while (str && *str)
@@ -91,11 +92,13 @@ QuotedStringList::Create(char *str, char
else if (*str == '"' || *str == '\'')
quote = *str;
else if (quote == 0 && strchr(sep, *str))
word = 0;
+ quoted = 0;
while (strchr(sep, *str))
@@ -111,7 +114,7 @@ QuotedStringList::Create(char *str, char
// Add the last word to the list
- if (word.length())
+ if (word.length() || quoted)
-- Gilles R. Detillieux E-mail: <email@example.com> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to firstname.lastname@example.org You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Wed Dec 08 1999 - 12:05:19 PST