* html.c: Try to something sane with lists
authorMichael Hampton <io_error@uncensored.citadel.org>
Mon, 23 Aug 2004 21:41:26 +0000 (21:41 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Mon, 23 Aug 2004 21:41:26 +0000 (21:41 +0000)
citadel/ChangeLog
citadel/html.c

index 6295f31af08a1f8ec290a0cd94b59315a5ebf1d7..8dba8ff97547c38e5ecba475e408292ef04a5545 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 624.6  2004/08/23 21:41:26  error
+ * html.c: Try to something sane with lists
+
  Revision 624.5  2004/08/23 21:40:04  error
  * No longer accept MD5 as a hash when encrypting
 
@@ -5987,4 +5990,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index a240247dc0f28e2e56708cf696eb5d863f5ea830..4325f0b26d48dd4541e16b51291c23cb80cd00e8 100644 (file)
@@ -132,6 +132,14 @@ char *html_to_ascii(char *inputmsg, int screenwidth, int do_citaformat) {
                                        strcat(outbuf, "\n\n");
                                }
 
+                               if (!strcasecmp(tag, "LI")) {
+                                       strcat(outbuf, "\n * ");
+                               }
+
+                               else if (!strcasecmp(tag, "/UL")) {
+                                       strcat(outbuf, "\n\n");
+                               }
+
                                else if (!strcasecmp(tag, "H1")) {
                                        strcat(outbuf, "\n\n");
                                }