This commit is contained in:
parent
8291755340
commit
583bf73c4d
3 changed files with 14 additions and 3 deletions
|
|
@ -227,7 +227,7 @@ void default_body(FILE* out, const char* top, xl_node_t* element, int spec, int
|
|||
strcmp(element->name, "br") == 0) {
|
||||
accept_attr(top, text, 0, element, "id", "class", NULL);
|
||||
|
||||
sprintf(tag, "<%s%text>", element->name, text);
|
||||
sprintf(tag, "<%s%s>", element->name, text);
|
||||
}
|
||||
|
||||
if(tag[0] != 0) print(out, tag, indent);
|
||||
|
|
|
|||
10
src/seed.c
10
src/seed.c
|
|
@ -118,8 +118,14 @@ int action_seed(int argc, char** argv) {
|
|||
fprintf(f, " Please read this!\n");
|
||||
fprintf(f, " </note>\n");
|
||||
fprintf(f, " <table>\n");
|
||||
fprintf(f, " <tr><th>Test</th><th>Test</th></tr>\n");
|
||||
fprintf(f, " <tr><td>Test</td><td>Test</td></tr>\n");
|
||||
fprintf(f, " <tr>\n");
|
||||
fprintf(f, " <th>Test</th>\n");
|
||||
fprintf(f, " <th>Test</th>\n");
|
||||
fprintf(f, " </tr>\n");
|
||||
fprintf(f, " <tr>\n");
|
||||
fprintf(f, " <td>Test</td>\n");
|
||||
fprintf(f, " <td>Test</td>\n");
|
||||
fprintf(f, " </tr>\n");
|
||||
fprintf(f, " </table>\n");
|
||||
fprintf(f, " <section title=\"Congratulations\">\n");
|
||||
fprintf(f, " <p>\n");
|
||||
|
|
|
|||
|
|
@ -163,6 +163,11 @@ void simple_stylesheet(FILE* out, const char* top) {
|
|||
fprintf(out, " font-family: Arial, Helvetica, sans-serif;\n");
|
||||
fprintf(out, "}\n");
|
||||
fprintf(out, "\n");
|
||||
fprintf(out, "hr {\n");
|
||||
fprintf(out, " border: none;\n");
|
||||
fprintf(out, " border-bottom: solid 1px #808080;\n");
|
||||
fprintf(out, "}\n");
|
||||
fprintf(out, "\n");
|
||||
|
||||
for(i = 0; i < sizeof(messages) / sizeof(messages[0]); i++) {
|
||||
fprintf(out, ".%s-message {\n", messages[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue