From ba526b3b8acaaac1d549238e3f9320687e5ebf97 Mon Sep 17 00:00:00 2001 From: nishi Date: Fri, 2 Feb 2024 04:51:23 +0000 Subject: [PATCH] w3b patch git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@158 d27a3e52-49c5-7645-884c-6793ebffc270 --- Example/w3b/w3b.c | 26 ++++++++++++++++++++++++++ W3Version.h.p | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/Example/w3b/w3b.c b/Example/w3b/w3b.c index d741478..5797e7d 100644 --- a/Example/w3b/w3b.c +++ b/Example/w3b/w3b.c @@ -207,6 +207,32 @@ void html_handler(char* tagname, char* attr) { } else if(strcasecmp(tagname, "/h6") == 0) { if(nl >= start) printf("\n"); nl++; + } else if(strcasecmp(tagname, "p") == 0) { + if(nl >= start) printf("\n"); + nl++; + } else if(strcasecmp(tagname, "/p") == 0) { + if(nl >= start) printf("\n"); + nl++; + } else if(strcasecmp(tagname, "dl") == 0) { + if(nl >= start) printf("\n"); + nl++; + } else if(strcasecmp(tagname, "/dl") == 0) { + if(nl >= start) printf("\n"); + nl++; + } else if(strcasecmp(tagname, "dt") == 0) { + if(nl >= start) printf("\n"); + nl++; + } else if(strcasecmp(tagname, "/dt") == 0) { + if(nl >= start) printf("\n"); + nl++; + } else if(strcasecmp(tagname, "dd") == 0) { + if(nl >= start) printf("\n"); + nl++; + printf(" "); + x += 4; + } else if(strcasecmp(tagname, "/dd") == 0) { + if(nl >= start) printf("\n"); + nl++; } else if(strcasecmp(tagname, "style") == 0) { style = true; } else if(strcasecmp(tagname, "img") == 0) { diff --git a/W3Version.h.p b/W3Version.h.p index 7e1cd2f..2a5028f 100644 --- a/W3Version.h.p +++ b/W3Version.h.p @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "2.2E" \ +#define LIBW3_VERSION "2.2F" \ SUFFIX #ifdef __cplusplus -- 2.43.0