Linelength between verbatim marks

Robert Grimm <[email protected]>
Newsgroups gmane.network.slrn.user
Organization Disorganized
Message-ID <[email protected]>
Hello John, hello slrn users,

I seem to remember, that earlier versions of slrn didn't warn if there
were lines > 80 between verbatim marks.

Are there any objections against this behavior?
Would something like the following patch be reasonable?

#v+
diff -urNad slrn-1.0.0~pre10~/src/post.c slrn-1.0.0~pre10/src/post.c
--- slrn-1.0.0~pre10~/src/post.c	2009-04-16 09:06:56.000000000 +0200
+++ slrn-1.0.0~pre10/src/post.c	2009-04-16 09:12:07.741193670 +0200
@@ -878,7 +878,7 @@
    unsigned int vlen;
    unsigned int lineno=*linenum;
    char *qs = Slrn_Quote_String;
-   int qlen, not_quoted=0, sig_lines=-1, longline=0, hibin=0;
+   int verbatim=0, qlen, not_quoted=0, sig_lines=-1, longline=0, hibin=0;
    Slrn_Mime_Error_Obj *err = NULL;
    Slrn_Article_Line_Type *raw_line=a->raw_lines;
 
@@ -907,8 +907,14 @@
 
 	if (0 == strcmp (line, "-- "))
 	     sig_lines = 0;
+	     
+	if (0 == strcmp (line, "#v+"))
+		verbatim = 1;
 
-	if ( (Slrn_Netiquette_Warnings != 0) || (Slrn_Reject_Long_Lines != 0))
+	if (0 == strcmp (line, "#v-"))
+	        verbatim = 0;
+
+	if ( !verbatim && ((Slrn_Netiquette_Warnings != 0) || (Slrn_Reject_Long_Lines != 0)))
 	  {
 	    if ( !longline && (slrn_charset_strlen (line, from_charset)>80))
 	      {
#v-

Rob
-- 
Trust me, I'm a sprout.
	-- Barry


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.