summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-10 10:00:42 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-10 10:00:42 +0200
commit41571b424d9358f01b0e9f00b2906e3640cf5814 (patch)
tree21ff8a495fa5f7f74aa26541cc02a2c388fdd2b1 /src/gmdocument.c
parent2002543dbedcc1666d02d11fbde55f794d692bb7 (diff)
GmDocument: Further link spacing tuning
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 3e7da995..a91d6a52 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -482,6 +482,11 @@ static void doLayout_GmDocument_(iGmDocument *d) {
482 if (type == link_GmLineType && prevNonBlankType == link_GmLineType && followsBlank) { 482 if (type == link_GmLineType && prevNonBlankType == link_GmLineType && followsBlank) {
483 required = 1.25f * lineHeight_Text(paragraph_FontId); 483 required = 1.25f * lineHeight_Text(paragraph_FontId);
484 } 484 }
485 else if (type == link_GmLineType && prevType == link_GmLineType) {
486 /* Balance space between the link icons and the labels, both vertically
487 between icons and between the icon and the label. */
488 required *= 0.75f;
489 }
485 if (type == quote_GmLineType && prevType == quote_GmLineType) { 490 if (type == quote_GmLineType && prevType == quote_GmLineType) {
486 /* No margin between consecutive quote lines. */ 491 /* No margin between consecutive quote lines. */
487 required = 0; 492 required = 0;