diff options
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -311,6 +311,7 @@ xs_str *sanitize(const char *content) | |||
| 311 | 311 | ||
| 312 | s = xs_str_cat(s, s2); | 312 | s = xs_str_cat(s, s2); |
| 313 | } else { | 313 | } else { |
| 314 | /* treat end of divs as paragraph breaks */ | ||
| 314 | if (strcmp(v, "</div>")) | 315 | if (strcmp(v, "</div>")) |
| 315 | s = xs_str_cat(s, "<p>"); | 316 | s = xs_str_cat(s, "<p>"); |
| 316 | } | 317 | } |