(gchar *)key, s->score);
if (description != NULL) {
cd->symbols_offset += rspamd_snprintf (cd->symbols_buf + cd->symbols_offset, cd->symbols_size - cd->symbols_offset,
- " \"description\": \"%s\"" CRLF, description);
+ " \"description\": \"%s\"%s" CRLF, description, s->options ? "" : ",");
}
else {
cd->symbols_offset += rspamd_snprintf (cd->symbols_buf + cd->symbols_offset, cd->symbols_size - cd->symbols_offset,
- " \"description\": \"\"" CRLF);
+ " \"description\": \"\"%s" CRLF, s->options ? "" : ",");
}
if (s->options) {
cd->symbols_offset += rspamd_snprintf (cd->symbols_buf + cd->symbols_offset, cd->symbols_size - cd->symbols_offset,