To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.admin.generalOpen lugnet.admin.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Administrative / General / 630
629  |  631
Subject: 
Re: Line wrapping
Newsgroups: 
lugnet.admin.general
Date: 
Wed, 9 Dec 1998 04:47:41 GMT
Viewed: 
789 times
  
"Todd Lehman" <lehman@javanet.com> writes:

Todd Lehman writes:
Todd Lehman writes:
Todd Lehman writes:
Anyway, if this message comes out properly wrapped, then from now on
you won't need to worry about wrapping when posting from the web
interface. (Or, at the very least, you won't need to worry about it
much.)

Hrm.

Yeah, Hrm is right.  I gotta stop this cowboy coding between packing boxes. My
subroutine which specially wraps news articles and ignores splitting up quoted
lines worked great in its unit test under the shell, but I forgot that inside of the CGI script the > character comes in as &gt; so it didn't see the line as beginning with >.  In other words, I forgot to call the HTML<->ASCII conversion functions before & after wrapping.  Doy doh doy.  This was also causing the columns to be split at funny places and not always at 79.
  ^
  ^
Oh dear.  :-p  Ptha.  The > character there just happened to wind up at the
beginning of a line during the splitting process and messed the whole thing
up.

Heh heh, well -- Tom, to further answer your original question -- the reason
I left this unimplemented and was crossing my fingers hoping that I wouldn't
ever have to make it work was because I suspected there were hidden
subtleties and I knew I hadn't thought it all through yet.  A quick hack
like the one I attempted here tonight is maybe a half hour of coding and
testing; to think it all through enough to make sure it's perfect is a
couple hours or more...

I wonder which is worse -- the occasional > character at the beginning of a
line during splitting, or wrapping >-quoted lines that shouldn't be wrapped?

I'm going to leave it as it is right now, since it's at least a marginal
improvement over before, and I'll come back to it when I've thought about it
more.  One thing's for sure -- once a line starts as a non->-line, it should
continue to be treated as a non->-line even if it breaks into a line that
happens to begin with >.  (shame on me for not realizing this).

--Todd



Message has 1 Reply:
  Re: Line wrapping
 
(...) I'm not nearly as computer saavy as you, I only do objectPal coding. But I know about writing and testing and the time and thought it can take. I just want to be sensitive to the rules, but sometimes it's not always obvious when I break em (...) (26 years ago, 9-Dec-98, to lugnet.admin.general)

Message is in Reply To:
  Re: Line wrapping
 
(...) Yeah, Hrm is right. I gotta stop this cowboy coding between packing boxes. My subroutine which specially wraps news articles and ignores splitting up quoted (...) All right, play time's over for me... back to work. --Todd (26 years ago, 9-Dec-98, to lugnet.admin.general)

9 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR