[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev lynx2.8.2dev.9 - (patch)
From: |
Leonid Pauzner |
Subject: |
Re: lynx-dev lynx2.8.2dev.9 - (patch) |
Date: |
Mon, 14 Dec 1998 21:41:22 +0300 (MSK) |
* fix links in History/Visited Links page for documents with blank
<TITLE></TITLE>,
also remove leading spaces from titles to make output a little better. - LP
diff -u old/gridtext.c ./gridtext.c
--- old/gridtext.c Fri Dec 4 12:46:20 1998
+++ ./gridtext.c Fri Dec 4 20:10:54 1998
@@ -2176,6 +2176,7 @@
CTRACE(tfp, "add(%c) %d/%d\n", ch,
HTisDocumentSource(), HTOutputFormat != WWW_SOURCE);
}
+ FREE(special);
} /* trace only */
#endif /* DEBUG_APPCH */
diff -u old/lyhistor.c ./lyhistor.c
--- old/lyhistor.c Sat Dec 12 20:10:36 1998
+++ ./lyhistor.c Mon Dec 14 21:26:02 1998
@@ -394,6 +394,10 @@
if (history[x].title != NULL) {
StrAllocCopy(Title, history[x].title);
LYEntify(&Title, TRUE);
+ LYTrimLeading(Title);
+ LYTrimTrailing(Title);
+ if (*Title == '\0')
+ StrAllocCopy(Title , gettext("(no title)"));
} else {
StrAllocCopy(Title, gettext("(no title)"));
}
@@ -542,6 +546,10 @@
if (vl->title != NULL && *vl->title != '\0') {
StrAllocCopy(Title, vl->title);
LYEntify(&Title, TRUE);
+ LYTrimLeading(Title);
+ LYTrimTrailing(Title);
+ if (*Title == '\0')
+ StrAllocCopy(Title , gettext("(no title)"));
} else {
StrAllocCopy(Title , gettext("(no title)"));
}