]> Nishi Git Mirror - libw3.git/commitdiff
fixed w3b space issue
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Tue, 6 Feb 2024 04:37:04 +0000 (04:37 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Tue, 6 Feb 2024 04:37:04 +0000 (04:37 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@172 d27a3e52-49c5-7645-884c-6793ebffc270

Example/w3b/w3b.c

index 83963a398f084566143808dd5dc49f83f1b746e6..8a91a0557520306a652a642211a88dfebd2d8438 100644 (file)
@@ -299,7 +299,7 @@ void text_handler(char* data) {
                        bool firstspc = true;
                        for(i = 0; i < strlen(data); i++) {
                                cbuf[0] = data[i];
-                               if(data[i] == '\n' || data[i] == '\t') {
+                               if(data[i] == '\n' || data[i] == '\t' || data[i] == ' ') {
                                        if(!spc && !firstspc) {
                                                spc = true;
                                                char* tmp = fmt_data;