fix thing
All checks were successful
pyrite-dev/taiga/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-03-10 07:23:09 +09:00
commit c0021e3071
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 8 additions and 3 deletions

View file

@ -221,9 +221,11 @@ void default_body(FILE* out, const char* top, xl_node_t* element, int spec, int
sprintf(end, "</%s>", element->name);
} else if(strcmp(element->name, "table") == 0) {
accept_attr(top, text, 0, element, "id", "class", NULL);
char* t = xl_get_attribute(element, "class");
sprintf(tag, "<%s%s class=\"grid\" width=\"100%%\" cellpadding=\"3\" cellspacing=\"2\" border=\"1\">", element->name, text);
accept_attr(top, text, 0, element, "id", NULL);
sprintf(tag, "<%s%s class=\"grid%s%s\" width=\"100%%\" cellpadding=\"3\" cellspacing=\"2\" border=\"1\">", element->name, text, t == NULL ? "" : " ", t == NULL ? "" : t);
sprintf(end, "</%s>", element->name);
} else if(strcmp(element->name, "hr") == 0 || /**/

View file

@ -102,10 +102,13 @@ void classic_stylesheet(FILE* out, const char* top) {
fprintf(out, "\n");
fprintf(out, ".grid th, .grid td {\n");
fprintf(out, " text-align: left;\n");
fprintf(out, " vertical-align: top;\n");
fprintf(out, " padding: 2px 3px;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, ".grid td {\n");
fprintf(out, " vertical-align: top;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, ".grid th {\n");
fprintf(out, " background-color: #cccccc;\n");
fprintf(out, "}\n");