=> 0fe60c4a6051af40405f478a4d80015839e8be9b
[1mdiff --git a/src/gmdocument.c b/src/gmdocument.c[m [1mindex 77d6af7e..0e07556e 100644[m [1m--- a/src/gmdocument.c[m [1m+++ b/src/gmdocument.c[m [36m@@ -684,6 +684,7 @@[m [mstatic void doLayout_GmDocument_(iGmDocument *d) {[m uint16_t preId = 0;[m iBool enableIndents = iFalse;[m const iBool isNormalized = isNormalized_GmDocument_(d);[m [32m+[m[32m const iBool isJustified = prefs->justifyParagraph;[m enum iGmLineType prevType = text_GmLineType;[m enum iGmLineType prevNonBlankType = text_GmLineType;[m iBool followsBlank = iFalse;[m [36m@@ -967,14 +968,17 @@[m [mstatic void doLayout_GmDocument_(iGmDocument *d) {[m rts.isPreformat = isPreformat;[m rts.layoutWidth = d->size.x;[m rts.indent = indent * gap_Text;[m [32m+[m[32m const iBool isTextType =[m [32m+[m[32m (type == text_GmLineType || type == bullet_GmLineType || type == quote_GmLineType);[m /* The right margin is used for balancing lines horizontally. */[m if (isVeryNarrow || isFullWidthImages) {[m [31m- rts.rightMargin = 0;[m [32m+[m[32m rts.rightMargin = (!isExtremelyNarrow && isJustified && isTextType ? 4 : 0) * gap_Text;[m [32m+[m[32m if (!isExtremelyNarrow && isJustified && type == link_GmLineType) {[m [32m+[m[32m rts.rightMargin = gap_Text;[m [32m+[m[32m }[m }[m else {[m [31m- rts.rightMargin = (type == text_GmLineType || type == bullet_GmLineType ||[m [31m- type == quote_GmLineType[m [31m- ? 4 : 0) * gap_Text;[m [32m+[m[32m rts.rightMargin = (isTextType ? 4 : 0) * gap_Text;[m }[m if (!isMono) {[m #if 0[m [36m@@ -1726,7 +1730,8 @@[m [mvoid setThemeSeed_GmDocument(iGmDocument *d, const iBlock *paletteSeed, const iB[m if (altIndex == 2) {[m // altBase.sat = 0.5f;[m altBase.sat *= 0.8f;[m [31m- altBase.hue -= 10;[m [32m+[m[32m altBase.lum += 0.1f;[m [32m+[m[32m altBase.hue -= 40;[m }[m }[m setHsl_Color(tmBackground_ColorId, base);[m
text/gemini; charset=utf-8
This content has been proxied by September (3851b).