🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Rob Stampfli Mon, 13 Jul 1992 03:03
trn problem
#1829
Author: Rob Stampfli
Date: Mon, 13 Jul 1992 03:03
23 lines
1680 bytes
I am having a minor problem with trn 2.2 based on rn 4.4 pl 2, on a 3B1
computer.  My .trninit file contains the following:

  -e -m -h +hfrom +horganization +hsummary +hkeywords +hdate -S -M -/ -X2Z>
  -EORGANIZATION="Little to None"
  -ESELECTCHARS="abdefgijlorstuvwx1234567890"

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.  The results look (in part) like:

  Summary: Keywords: Date: Sun Jul 12 22:59:14 EDT 1992               --(1)---(2)---[2]

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.

By the way, I like trn's remapping of the date to local time.
-- 
Rob Stampfli  rob@colnet.cmhnet.org      The neat thing about standards:
614-864-9377  HAM RADIO: kd8wk@n8jyv.oh  There are so many to choose from.
Re: trn problem
#1841
Author: Ross Ridge
Date: Tue, 14 Jul 1992 19:00
36 lines
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	 //
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads