🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #252889

Re: slrn Wrap Body Text

#252889
From: J.B. Nicholson-Owens
Date: Fri, 21 Dec 2012 03:10
19 lines
1970 bytes
Chris Gordon-Smith wrote:
> What I would like is to have them wrap around at about 70 or so
> characters. Does anyone know whether slrn can be configured to do this?

I'm sure one could do this with an S-Lang macro; one approach is to grab 
the article text with article_as_string(), process the text as needed, 
then replace_article() to put the text back in the article body viewer.

One would probably want to be mindful of the "#v+" and "#v-" lines in 
the article body as they mean something special to slrn (see 
http://slrn.sourceforge.net/docs/slrn-manual-6.html#ss6.46 for more 
info), so don't alter these lines.

One would probably also want to have a configuration variable for 
wrapping width too.  Changing the wrap point and redrawing the article 
could make for a nice pair of keys to widen or narrow the width of the 
article.

Good luck!
Technical Details
Message-ID: <kb0jue$gp9$1@speranza.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
References: <ajhk8mFghdvU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <kb0jue$gp9$1@speranza.aioe.org>
Subject: Re: slrn Wrap Body Text
Date: Thu, 20 Dec 2012 21:10:07 -0600
From: "J.B. Nicholson-Owens" <jbn@forestfield.org>
References: <ajhk8mFghdvU1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Aioe.org NNTP Server
Lines: 19
NNTP-Posting-Host: yd7z4VFegWzFZhw5TKrNHQ.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
X-Notice: Filtered by postfilter v. 0.8.2
X-TagToolbar-Keys: D20121220211007616
X-Original-Bytes: 1737