mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-09-18 02:15:34 +08:00
Add support for styling segments
This commit is contained in:

committed by
Phil Scott

parent
921d595269
commit
5e41a2f505
@@ -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;
|
||||
|
Reference in New Issue
Block a user