summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gmdocument.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index ec0bddb5..cde6f4c9 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -341,7 +341,7 @@ static void alignDecoration_GmRun_(iGmRun *run, iBool isCentered) {
341 int xAdjust = 0; 341 int xAdjust = 0;
342 if (!isCentered) { 342 if (!isCentered) {
343 /* Keep the icon aligned to the left edge. */ 343 /* Keep the icon aligned to the left edge. */
344 const int alignWidth = width_Rect(run->visBounds) * 3 / 4; 344 const int alignWidth = width_Rect(run->visBounds) * 4 / 5;
345 xAdjust -= left_Rect(visBounds); 345 xAdjust -= left_Rect(visBounds);
346 if (visWidth > alignWidth) { 346 if (visWidth > alignWidth) {
347 /* ...unless it's a wide icon, in which case move it to the left. */ 347 /* ...unless it's a wide icon, in which case move it to the left. */
@@ -413,10 +413,10 @@ static void doLayout_GmDocument_(iGmDocument *d) {
413 indents[preformatted_GmLineType] = indents[text_GmLineType]; 413 indents[preformatted_GmLineType] = indents[text_GmLineType];
414 } 414 }
415 static const float topMargin[max_GmLineType] = { 415 static const float topMargin[max_GmLineType] = {
416 0.0f, 0.333f, 1.0f, 0.5f, 2.0f, 1.5f, 1.25f, 0.25f 416 0.0f, 0.25f, 1.0f, 0.5f, 2.0f, 1.5f, 1.25f, 0.25f
417 }; 417 };
418 static const float bottomMargin[max_GmLineType] = { 418 static const float bottomMargin[max_GmLineType] = {
419 0.0f, 0.333f, 1.0f, 0.5f, 0.5f, 0.5f, 0.5f, 0.25f 419 0.0f, 0.25f, 1.0f, 0.5f, 0.5f, 0.5f, 0.5f, 0.25f
420 }; 420 };
421 static const char *arrow = rightArrowhead_Icon; 421 static const char *arrow = rightArrowhead_Icon;
422 static const char *envelope = "\U0001f4e7"; 422 static const char *envelope = "\U0001f4e7";
@@ -589,7 +589,7 @@ static void doLayout_GmDocument_(iGmDocument *d) {
589 else if (type == link_GmLineType && prevType == link_GmLineType) { 589 else if (type == link_GmLineType && prevType == link_GmLineType) {
590 /* Balance space between the link icons and the labels, both vertically 590 /* Balance space between the link icons and the labels, both vertically
591 between icons and between the icon and the label. */ 591 between icons and between the icon and the label. */
592 required *= 0.75f; 592 //required *= 0.75f;
593 } 593 }
594 if (type == quote_GmLineType && prevType == quote_GmLineType) { 594 if (type == quote_GmLineType && prevType == quote_GmLineType) {
595 /* No margin between consecutive quote lines. */ 595 /* No margin between consecutive quote lines. */