🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Mike Mckinney Mon, 14 Jul 1997 00:00
bug in slrn0.9.4.3 ?
#35142
Author: Mike Mckinney
Date: Mon, 14 Jul 1997 00:00
10 lines
752 bytes

I just noticed that in slrn 0.9.4.3, that the headers will not wrap...
Namely, the path line. Is this a bug, or some new feature ?
Note, the header does wrap fine in slrn 0.9.4.2 .

mike@bga.com


Re: bug in slrn0.9.4.3 ?
#35118
Author: John E. Davis
Date: Mon, 14 Jul 1997 00:00
12 lines
898 bytes
On 14 Jul 1997 14:25:12 GMT, Mike Mckinney <mike@bga.com>
wrote:
>I just noticed that in slrn 0.9.4.3, that the headers will not wrap...

I made a change so that wrap only occurs on whitespace boundaries.  I
will change this in the next version so that headers are properly
wrapped.

--John

Re: bug in slrn0.9.4.3 ?
#35151
Author: Sven Guckes
Date: Mon, 14 Jul 1997 00:00
19 lines
1173 bytes
mike@bga.com (Mike Mckinney):
> I just noticed that in slrn 0.9.4.3, that the headers will not wrap...
> Namely, the path line. Is this a bug, or some new feature ?
> Note, the header does wrap fine in slrn 0.9.4.2 .

Well, slrn-0943 shows the Path line of your post and 'w'rap like this:

===
Path:
  fu-berlin.de!nntprelay.mathworks.com!europa.clark.net!news-peer.sprintlink.net
===

Fits nicely into 80 columns.  :-)
Maybe you forgot to 'w'rap it?

Sven

Re: bug in slrn0.9.4.3 ?
#35161
Author: Byrial Jensen
Date: Tue, 15 Jul 1997 00:00
17 lines
1135 bytes
Mike Mckinney <mike@bga.com> wrote:
>I just noticed that in slrn 0.9.4.3, that the headers will not wrap...
>Namely, the path line. Is this a bug, or some new feature ?
>Note, the header does wrap fine in slrn 0.9.4.2 .

A few versions ago (maybe 0.9.4.0?) jed improved the wrapping function
to only wrap at word boundaries (i.e. spaces or tabs) instead of always
at the last character on the line.

But he didn't include a check to see if there actually are any wrap
points in the line to wrap. Such a check came in 0.9.4.3, and if no
space or tab is found, it gives up wrapping that line.

- Byrial

Re: bug in slrn0.9.4.3 ?
#35164
Author: Mike Mckinney
Date: Tue, 15 Jul 1997 00:00
13 lines
898 bytes
>I made a change so that wrap only occurs on whitespace boundaries.  I
>will change this in the next version so that headers are properly
>wrapped.

Any estimate on the release of the next version, with this "fix" ?

Thanks.

		mike@bga.com


Re: bug in slrn0.9.4.3 ?
#35166
Author: Olly Betts
Date: Tue, 15 Jul 1997 00:00
45 lines
2635 bytes
In article <slrn5smsok.mcp.I-hate-cyber-promo@news.rediris.es>, A. Deckers wrote:
>In <slrn5sml84.kro.olly@noxious.muscat.co.uk>, Olly Betts <olly@muscat.co.uk> wrote:
>>In article <slrn5slghq.vb.byrial@ask.ask>, Byrial Jensen wrote:
>>>Mike Mckinney <mike@bga.com> wrote:
>>>>I just noticed that in slrn 0.9.4.3, that the headers will not wrap...
>>>>Namely, the path line. Is this a bug, or some new feature ?
>>>>Note, the header does wrap fine in slrn 0.9.4.2 .

>>>A few versions ago (maybe 0.9.4.0?) jed improved the wrapping function
>>>to only wrap at word boundaries (i.e. spaces or tabs) instead of always
>>>at the last character on the line.

>>>But he didn't include a check to see if there actually are any wrap
>>>points in the line to wrap. Such a check came in 0.9.4.3, and if no
>>>space or tab is found, it gives up wrapping that line.

>>My guess is that the "Path:" header in question has a tab after the colon,
>>and no other whitespace, so this bug meant it wasn't getting wrapped.

>Doesn't work for me. As Mike wrote, the problem is that slrn now only
>wraps on space or tab. You'd have to treat headers differently from
>body text to solve this particular problem.

Assuming your wrap flags are set suitably, if you aren't getting any
wrapping in the headers (which is what Mike compained of) then the only
explanation I can see is that there're only tabs and no spaces in the lines
which need wrapping.

With the bug-fix I gave, the code will wrap at a space or tab after the
colon if the next word won't fit on the same line.

The new wrapping code won't split long "words" (e.g. the contents of most
Path: headers), so will rather unhelpfully wrap a typical Path: header as:

Path:
  <80+ character path header with no whitespace>

But that's a different problem to not wrapping at all.

Olly
-- 
Don't send a man to do a buoy's job.

Re: bug in slrn0.9.4.3 ?
#35169
Author: A. Deckers
Date: Tue, 15 Jul 1997 00:00
28 lines
1912 bytes
In <slrn5sml84.kro.olly@noxious.muscat.co.uk>,
	Olly Betts <olly@muscat.co.uk> wrote:
>In article <slrn5slghq.vb.byrial@ask.ask>, Byrial Jensen wrote:
>>Mike Mckinney <mike@bga.com> wrote:
>>>I just noticed that in slrn 0.9.4.3, that the headers will not wrap...
>>>Namely, the path line. Is this a bug, or some new feature ?
>>>Note, the header does wrap fine in slrn 0.9.4.2 .
>>
>>A few versions ago (maybe 0.9.4.0?) jed improved the wrapping function
>>to only wrap at word boundaries (i.e. spaces or tabs) instead of always
>>at the last character on the line.
>>
>>But he didn't include a check to see if there actually are any wrap
>>points in the line to wrap. Such a check came in 0.9.4.3, and if no
>>space or tab is found, it gives up wrapping that line.
[...]
>My guess is that the "Path:" header in question has a tab after the colon,
>and no other whitespace, so this bug meant it wasn't getting wrapped.

Doesn't work for me. As Mike wrote, the problem is that slrn now only
wraps on space or tab. You'd have to treat headers differently from
body text to solve this particular problem.

-- 
I-hate-cyber-promo@man.ac.uk (Alain Deckers)

Re: bug in slrn0.9.4.3 ?
#35173
Author: Olly Betts
Date: Tue, 15 Jul 1997 00:00
48 lines
2097 bytes
In article <slrn5slghq.vb.byrial@ask.ask>, Byrial Jensen wrote:
>Mike Mckinney <mike@bga.com> wrote:
>>I just noticed that in slrn 0.9.4.3, that the headers will not wrap...
>>Namely, the path line. Is this a bug, or some new feature ?
>>Note, the header does wrap fine in slrn 0.9.4.2 .
>
>A few versions ago (maybe 0.9.4.0?) jed improved the wrapping function
>to only wrap at word boundaries (i.e. spaces or tabs) instead of always
>at the last character on the line.
>
>But he didn't include a check to see if there actually are any wrap
>points in the line to wrap. Such a check came in 0.9.4.3, and if no
>space or tab is found, it gives up wrapping that line.

There's a minor bug in 0.9.4.3 which means that wrapping doesn't happen
properly at tabs.  I think this patch will fix it -- let me know either
way:

*** art.c~	Sat Jul 12 21:29:02 1997
--- art.c	Tue Jul 15 11:41:52 1997
***************
*** 995,1001 ****
  		  
  		  while (buf0 > lbuf)
  		    {
! 		       if ((*buf0 == ' ') || (*buf == '\t'))
  			 {
  			    buf = buf0;
  			    break;
--- 995,1001 ----
  		  
  		  while (buf0 > lbuf)
  		    {
! 		       if ((*buf0 == ' ') || (*buf0 == '\t'))
  			 {
  			    buf = buf0;
  			    break;

My guess is that the "Path:" header in question has a tab after the colon,
and no other whitespace, so this bug meant it wasn't getting wrapped.

Cheers,
Olly
-- 
Don't send a man to do a buoy's job.

Re: bug in slrn0.9.4.3 ?
#35198
Author: Byrial Jensen
Date: Wed, 16 Jul 1997 00:00
60 lines
2333 bytes
A. Deckers <I-hate-cyber-promo@man.ac.uk> wrote:
>Doesn't work for me. As Mike wrote, the problem is that slrn now only
>wraps on space or tab. You'd have to treat headers differently from
>body text to solve this particular problem.

OK, here comes a patch with 3 changes:

 - Trailing whitespace on a line will never cause the line to wrap any
   more. (Chunk 1).

 - Olly's correction of the minor bug relating to tabs is repeated.
   (Chunk 2).

 - Adding 8 to the value of wrap_flags now means that if necessary long
   words (both in header and body) are cut in the middle to avoid to long
   lines. (Chunk 3).

I hope this helps.

Regards,
- Byrial

--- art.c.org	Wed Jul 16 10:36:15 1997
+++ art.c	Wed Jul 16 11:50:33 1997
@@ -991,6 +991,14 @@
 	       {
 		  Slrn_Article_Line_Type *new_l;
 		  unsigned char *buf0, *lbuf;
+		  
+		  /* Check to see if the line from this point only
+		   * contains whitespace, and if so drop wrapping it.
+		   */
+		  
+		  buf0 = buf;
+		  while ((*buf0 == ' ') || (*buf0 == '\t')) buf0++;
+		  if (*buf0 == '\0') break;
 
 		  /* Try to break the line on a word boundary.  
 		   * For now, I will only break on space characters.
@@ -1001,7 +1009,7 @@
 		  
 		  while (buf0 > lbuf)
 		    {
-		       if ((*buf0 == ' ') || (*buf == '\t'))
+		       if ((*buf0 == ' ') || (*buf0 == '\t'))
 			 {
 			    buf = buf0;
 			    break;
@@ -1009,7 +1017,7 @@
 		       buf0--;
 		    }
 	
-		  if (buf0 == lbuf)
+		  if ((buf0 == lbuf) && ((wrap_mode & 8) == 0))
 		    {
 		       /* Could not find a place to break the line.  Ok, so
 			* we will not break this.  Perhaps it is a URL.  

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