Skip to content

Commit e520aed

Browse files
authored
Merge pull request #292 from EppO/fix-colorized-hmerge-footer
Fix AlignRight override for footer HMerge/TOTAL pattern
2 parents 842268a + f541e24 commit e520aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderer/colorized.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ func (c *Colorized) renderLine(ctx tw.Formatting, line []string, tint Tint) {
625625
}
626626
// Override alignment for footer merges or TOTAL pattern
627627
if (ctx.Row.Position == tw.Footer && isHMergeStart) || isTotalPattern {
628-
if align != tw.AlignRight {
628+
if align == tw.AlignNone {
629629
c.logger.Debugf("renderLine: Applying AlignRight override for Footer HMerge/TOTAL pattern at col %d. Original/default align was: %s", i, align)
630630
align = tw.AlignRight
631631
}

0 commit comments

Comments
 (0)