From 6dcf7cbb5b763e7b49d71560be9503069212bf4d Mon Sep 17 00:00:00 2001 From: ketmar Date: Sun, 11 Feb 2018 09:26:54 +0000 Subject: [PATCH] always center images FossilOrigin-Name: a892fbc2472f70876abccfadbb96fb743bae91257023065ce075cc7eb6287a03 --- xreaderfmt.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xreaderfmt.d b/xreaderfmt.d index 80a524f..ebb9e03 100644 --- a/xreaderfmt.d +++ b/xreaderfmt.d @@ -312,6 +312,7 @@ private: lay.endLine; lay.lineStyle.setCenter; putImage(tag); + lay.endLine; return; case "style": @@ -469,8 +470,10 @@ private: if (onlyImagePara(ct)) { lay.pushStyles(); scope(exit) lay.popStyles; + lay.endLine; lay.lineStyle.setCenter; foreach (Tag tag; ct.children) putOneTag(tag); + lay.endLine; } else { //if (ct.name == "subtitle") conwriteln("text: [", ct.children[0].text, "]"); foreach (Tag tag; ct.children) { -- 2.11.4.GIT