Article View: news.software.readers
Article #228621Re: [dialog] delimiting randomsigs
From: Ron Ford
Date: Wed, 07 Jan 2009 09:34
Date: Wed, 07 Jan 2009 09:34
38 lines
2135 bytes
2135 bytes
On Wed, 7 Jan 2009 19:57:22 +1100, Rom wrote:
> On Tue, 6 Jan 2009 20:57:00 -0700, Ron Ford wrote:
>
>> This is the second time when randomsigs seem to not notice a percentage
>> sign between sigs:
>>
>> %%
>
> The above is "%%" not "%".
I'll work up something to replace the two with one.
>
>> along with:
>>
>> %
>
> The above is "% " not "%".
That makes the difference; I had a space before the newline in print_nice:
# we need to provide our special formatting subroutine
sub print_nice {
my($q, $s) = @_; # shift actual arguments into variables
$q =~ s/\s+/ /g; # quote: transfer multiple whitespace to a single
$q =~ s/<[^>]+>//g; # quote: remove html formatting
$s =~ s/\s+/ /g; # source: same here
$s =~ s/<[^>]+>//g; # source: same here
print "$q" # print quote, followed by ...
. "\n" # new line
. "~~ $s\n" # '-' + quote source + double \n
. "%\n" # a percentage sign between quotes
}
--
Ron
Picture of the Day http://apod.nasa.gov/apod/
Technical Details
Message-ID:
<1okgtb0rt2be0$.10z77oltsq7cq.dlg@40tude.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.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<1s1igdsz4rlty.1ezz1ljvd8yok$.dlg@40tude.net> <hlslh5ez3qbn$.39tiy0rqxylc$.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <1okgtb0rt2be0$.10z77oltsq7cq.dlg@40tude.net> Subject: Re: [dialog] delimiting randomsigs Date: Wed, 7 Jan 2009 02:34:01 -0700 From: Ron Ford <ron@example.invalid> References: <1s1igdsz4rlty.1ezz1ljvd8yok$.dlg@40tude.net> <hlslh5ez3qbn$.39tiy0rqxylc$.dlg@40tude.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.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 38 Reply-To: ron@example.invalid Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net /U6HbtxWek//XwMD77EW/wybRK6adPtJ15KZBXNUBk0B5oJlm2 Cancel-Lock: sha1:5aWrkLhPTszbS1gnVci5qG9lgxE= User-Agent: 40tude_Dialog/2.0.15.1