Output <hr/> for footnotes when using XHTML renderer
This commit is contained in:
parent
71af174519
commit
abf9198169
2 changed files with 7 additions and 2 deletions
|
@ -529,7 +529,12 @@ rndr_normal_text(struct buf *ob, const struct buf *text, void *opaque)
|
|||
static void
|
||||
rndr_footnotes(struct buf *ob, const struct buf *text, void *opaque)
|
||||
{
|
||||
BUFPUTSL(ob, "<div class=\"footnotes\">\n<hr />\n<ol>\n");
|
||||
struct html_renderopt *options = opaque;
|
||||
|
||||
if (ob->size) bufputc(ob, '\n');
|
||||
BUFPUTSL(ob, "<div class=\"footnotes\">\n");
|
||||
BUFPUTSL(ob, (USE_XHTML(options) ? "<hr/>\n" : "<hr>\n"));
|
||||
BUFPUTSL(ob, "<ol>\n");
|
||||
|
||||
if (text)
|
||||
bufput(ob, text->data, text->size);
|
||||
|
|
|
@ -46,7 +46,7 @@ struct buf {
|
|||
|
||||
/* BUFPUTSL: optimized bufputs of a string literal */
|
||||
#define BUFPUTSL(output, literal) \
|
||||
bufput(output, literal, sizeof literal - 1)
|
||||
bufput(output, literal, sizeof(literal) - 1)
|
||||
|
||||
/* bufgrow: increasing the allocated size to the given value */
|
||||
int bufgrow(struct buf *, size_t);
|
||||
|
|
Loading…
Reference in a new issue