]> code.citadel.org Git - citadel.git/commitdiff
* messages.c: temporarily set screenwidth to a fixed value of 80
authorArt Cancro <ajc@citadel.org>
Wed, 4 Nov 1998 15:54:39 +0000 (15:54 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 4 Nov 1998 15:54:39 +0000 (15:54 +0000)
          during <P>rint operations.

citadel/ChangeLog
citadel/messages.c

index 512a6733eba9b545ec187899259a8de0c3a58a00..a709cd3753d8ba09718c28ccb90f09f7ead00c0e 100644 (file)
@@ -1,3 +1,7 @@
+Wed Nov  4 10:53:13 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+       * messages.c: temporarily set screenwidth to a fixed value of 80
+         during <P>rint operations.
+
 Mon Nov  2 12:59:03 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * setup.c: looks for 'citadel', 'bbs', or 'guest' in /etc/passwd to
          try to get a default for bbsuid if it's currently set to 0
index 468105c1e98ba97ef8d0c8e54543a1ba76dd71dc..c927fed902f9451f63d07ea8a976c2db39e04dd6 100644 (file)
@@ -281,7 +281,7 @@ void citedit(FILE *fp, long int base_pos)
                                for (b=0; b<strlen(wordbuf); ++b)
                                   if (wordbuf[b]==32) {
                                        wordbuf[b]=0;
-                                       add_word(textlist,wordbuf);
+                                       ADD_WORD(textlist,wordbuf);
                                        strcpy(wordbuf,&wordbuf[b+1]);
                                        b=0;
                                        }
@@ -1004,17 +1004,23 @@ void readmsgs(int c, int rdir, int q)   /* read contents of a room */
 RAGAIN:                pagin=((arcflag==0)&&(quotflag==0)&&
                        (userflags & US_PAGINATOR)) ? 1 : 0;
 
-       /* if we're doing a quote, set the screenwidth to 72 temporarily */
+       /* If we're doing a quote, set the screenwidth to 72 temporarily */
                if (quotflag) {
                        hold_sw = screenwidth;
                        screenwidth = 72;
                        }
 
+       /* If printing or archiving, set the screenwidth to 80 temporarily */
+               if (arcflag) {
+                       hold_sw = screenwidth;
+                       screenwidth = 80;
+                       }
+
        /* now read the message... */
                e=read_message(msg_arr[a],pagin);
 
        /* ...and set the screenwidth back if we have to */
-               if (quotflag) {
+               if ((quotflag)||(arcflag)) {
                        screenwidth = hold_sw;
                        }
 RMSGREAD:      fflush(stdout);