From df534ef8189cffbce682a6d6d6bc96fc08dbf60e Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 24 Jun 2021 17:28:31 +0200 Subject: [PATCH] [xml] blockquote without tables --- src/document/xml/tags.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/document/xml/tags.c b/src/document/xml/tags.c index de0b7e327..b2532da82 100644 --- a/src/document/xml/tags.c +++ b/src/document/xml/tags.c @@ -569,14 +569,23 @@ tags_html_blockquote(struct source_renderer *renderer, void *node, unsigned char unsigned char *xxx3, unsigned char *xxx4, unsigned char **xxx5) { struct html_context *html_context = renderer->html_context; - par_elformat.leftmargin += 2; + par_elformat.align = ALIGN_LEFT; + if (par_elformat.blockquote_level == 0) { + par_elformat.orig_leftmargin = par_elformat.leftmargin; + par_elformat.blockquote_level++; + } + par_elformat.blockquote_level++; } void tags_html_blockquote_close(struct source_renderer *renderer, void *node, unsigned char *a, unsigned char *xxx3, unsigned char *xxx4, unsigned char **xxx5) { + struct html_context *html_context = renderer->html_context; + + if (par_elformat.blockquote_level == 2) par_elformat.blockquote_level--; + if (par_elformat.blockquote_level > 0) par_elformat.blockquote_level--; } void