add contents
All checks were successful
pyrite-dev/taiga/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-03-09 02:42:06 +09:00
commit 3d0d4ca891
Signed by: nishi
GPG key ID: 27EF69B208EB9343
8 changed files with 120 additions and 3 deletions

View file

@ -103,8 +103,9 @@ void default_body(FILE* out, const char* top, xl_node_t* element, int spec, int
if(strcmp(element->name, "section") == 0) {
char* title = xl_get_attribute(element, "title");
char* id = u_section_id(element);
sprintf(tag, "<div class=\"section\">%s</div>", title);
if(id != NULL) sprintf(tag, "<div class=\"section\" id=\"%s\">%s</div>", id, title);
} else if(strcmp(element->name, "fixme") == 0 || /**/
strcmp(element->name, "warning") == 0 || /**/
strcmp(element->name, "note") == 0) {