Add support for styling segments

This commit is contained in:
Patrik Svensson
2022-02-21 14:38:43 +01:00
committed by Phil Scott
parent 921d595269
commit 5e41a2f505
9 changed files with 293 additions and 50 deletions

View File

@@ -115,7 +115,7 @@ internal static class TableRenderer
}
// Align the row result.
Aligner.Align(context.Options, rowResult, context.Alignment, context.MaxWidth);
Aligner.Align(rowResult, context.Alignment, context.MaxWidth);
// Is the row larger than the allowed max width?
if (Segment.CellCount(rowResult) > context.MaxWidth)
@@ -167,7 +167,7 @@ internal static class TableRenderer
segments.AddRange(((IRenderable)paragraph).Render(context.Options, context.TableWidth));
// Align over the whole buffer area
Aligner.Align(context.Options, segments, context.Alignment, context.MaxWidth);
Aligner.Align(segments, context.Alignment, context.MaxWidth);
segments.Add(Segment.LineBreak);
return segments;