Article View: news.software.readers
Article #1841Re: trn problem
From: Ross Ridge
Date: Tue, 14 Jul 1992 19:00
Date: Tue, 14 Jul 1992 19:00
36 lines
1776 bytes
1776 bytes
res@colnet.cmhnet.org (Rob Stampfli) writes:
>The problem is this: When I encounter an article with a Summary: or Keywords:
>header which is null ("^Summary: $" on a line by itself), there is no newline
>printed at the end of the header. Instead, the following line is tagged onto
>the end, producing a misaligned thread map. This seems to only occur in
>threaded groups.
>Now, I have the source, but before I tear into some (what looks like) pretty
>complex code, I wonder if anyone else has noticed this, and if so, perhaps
>has a solution.
I noticed this, since I was patching trn anyways, and have already
done some hacking into the code, I decided to look into the problem.
The problem is in the function tree_puts in rt-rn.c. There's a for
loop that looks like this:
for (; *line; i = header_indent) {
/* much code deleted */
}
I changed it to:
do {
/* much code deleted */
i = header_indent;
} while(*line);
And the problem went away.
Ross Ridge
--
Ross Ridge - The Great HTMU l/ //
[OO][oo]
ross@zooid.guild.org /()\/()/
uunet.ca!zooid!ross db //
Technical Details
Message-ID:
<1992Jul14.190036.25161@zooid.guild.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!uunet.ca!geac!zooid!rossReferences:
<1992Jul13.030355.12850@colnet.cmhnet.org>Show Full Headers
Complete Article Headers
Message-ID: <1992Jul14.190036.25161@zooid.guild.org> Subject: Re: trn problem Date: Tue, 14 Jul 1992 19:00:36 GMT From: Ross Ridge <ross@zooid.guild.org> References: <1992Jul13.030355.12850@colnet.cmhnet.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!uunet.ca!geac!zooid!ross Newsgroups: news.software.readers Organization: ZOOiD BBS Distribution: usa Lines: 36