// Copyright (c) 1987-2022 by the citadel.org team
//
// This program is open source software. Use, duplication, and/or
-// disclosure are subject to the GNU General Purpose License version 3.
+// disclosure is subject to the GNU General Purpose License version 3.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
char old = 0; // The previous character
int column = 0; // Current column
size_t i; // Generic counter
+ int in_quote = 0;
// Space for a single word, which can be at most screenwidth
word = (char *) calloc(1, width);
// Run the message body
while (*e) {
+
// Catch characters that shouldn't be there at all
if (*e == '\r') {
e++;
continue;
}
+
+ if ((in_quote) && (*e == '\n') && (enable_color)) {
+ in_quote = 0;
+ scr_printf("\033[22m\033[22m");
+ }
+
if (*e == '\n') { // newline?
e++;
if (*e == ' ') { // paragraph?
continue;
}
+ if ((*e == '>') && (column <= 1) && (!fpout) && (enable_color)) {
+ in_quote = 1;
+ scr_printf("\033[2m\033[2m");
+ }
+
// Or are we looking at a space?
if (*e == ' ') {
e++;