This commit is contained in:
parent
c34d4d9962
commit
c0021e3071
2 changed files with 8 additions and 3 deletions
|
|
@ -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 || /**/
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue