-/*
- * fmout() - Citadel text formatter and paginator
- */
-int fmout(int width, /* screen width to use */
- FILE * fpin, /* file to read from, or NULL to format given text */
- char *text, /* text to be formatted (when fpin is NULL */
- FILE * fpout, /* file to write to, or NULL to write to screen */
- int subst) { /* nonzero if we should use hypertext mode */
- char *buffer = NULL; /* The current message */
- char *word = NULL; /* What we are about to actually print */
- char *e; /* Pointer to position in text */
- char old = 0; /* The previous character */
- int column = 0; /* Current column */
- size_t i; /* Generic counter */
-
- /* Space for a single word, which can be at most screenwidth */
+// fmout() - Citadel text formatter and paginator
+int fmout(int width, // screen width to use
+ FILE * fpin, // file to read from, or NULL to format given text
+ char *text, // text to be formatted (when fpin is NULL
+ FILE * fpout, // file to write to, or NULL to write to screen
+ int subst // nonzero if we should use hypertext mode
+) {
+ char *buffer = NULL; // The current message
+ char *word = NULL; // What we are about to actually print
+ char *e; // Pointer to position in text
+ 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