Show
Ignore:
Timestamp:
09/26/08 23:59:57 (3 months ago)
Author:
karpet
Message:

some versions of html parser were passing through extra whitespace.
seems to be a specific libxml2 issue. in any case, added a new
whitespace check in both add to buf methods and perl bindings
(the latter where t/20-metanames.t was failing due to extra whitespace)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/libswish3/string.c

    r2141 r2178  
    541541} 
    542542 
    543 int 
     543boolean 
    544544swish_str_all_ws( 
    545545    xmlChar *s 
    546546) 
    547547{ 
    548     int len, i; 
    549     len = xmlStrlen(s); 
     548    return swish_str_all_ws_len(s, xmlStrlen(s)); 
     549
     550 
     551boolean 
     552swish_str_all_ws_len( 
     553    xmlChar * s,  
     554    int len 
     555
     556
     557    int i; 
    550558    for (i = 0; i < len; i++) { 
    551559        if (!isspace((int)s[i])) { 
     
    555563    return 1; 
    556564} 
     565 
    557566 
    558567void