]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/html_to_ascii.c
Blockquotes are now rendered to console as dim instead of italic
[citadel.git] / libcitadel / lib / html_to_ascii.c
index 3c1012f00bf601a9aa9ff0efa85d8a4679891a8d..ca2de8df8d9e7b0eb756ca1a7186a16d5f571641 100644 (file)
@@ -1,5 +1,5 @@
 // Functions which handle translation between HTML and plain text
-// Copyright (c) 2000-2022 by the citadel.org team
+// Copyright (c) 2000-2023 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or disclosure
 // is subject to the terms of the GNU General Public License, version 3.
 #include <sys/stat.h>
 #include <errno.h>
 #include <limits.h>
-
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
-#endif
-
+#include <time.h>
 #include "libcitadel.h"
  
 
@@ -247,7 +236,7 @@ char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth, int ansi)
                                        ++blockquote;
                                        strcpy(nl, "\n");
                                        if ( (blockquote == 1) && (ansi) ) {
-                                               strcat(nl, "\033[2m\033[3m");
+                                               strcat(nl, "\033[2m\033[2m");
                                        }
                                        for (j=0; j<blockquote; ++j) strcat(nl, ">");
                                        strcat(outbuf, nl);
@@ -257,7 +246,7 @@ char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth, int ansi)
                                        strcat(outbuf, "\n");
                                        --blockquote;
                                        if ( (blockquote == 0) && (ansi) ) {
-                                               strcat(outbuf, "\033[22m\033[23m");
+                                               strcat(outbuf, "\033[22m\033[22m");
                                        }
                                        strcpy(nl, "\n");
                                        for (j=0; j<blockquote; ++j) strcat(nl, ">");