add useful tool

This commit is contained in:
Nishi 2026-03-17 09:24:05 +09:00
commit 46850a2430
Signed by: nishi
GPG key ID: 27EF69B208EB9343
8 changed files with 5817 additions and 3 deletions

View file

@ -184,9 +184,9 @@ void default_body(FILE* out, const char* top, xl_node_t* element, int spec, int
sprintf(tag, "<%s%s>", element->name, text);
sprintf(end, "</%s>", element->name);
} else if(strcmp(element->name, "td") == 0 || /**/
strcmp(element->name, "th") == 0) {
accept_attr(top, text, 0, element, "id", "class", "rowspan", "colspan", NULL);
} else if(strcmp(element->name, "th") == 0 || /**/
strcmp(element->name, "td") == 0) {
accept_attr(top, text, 0, element, "id", "class", "rowspan", "colspan", "width", "height", NULL);
sprintf(tag, "<%s%s>", element->name, text);