Closed haptear closed 2 years ago
test code
var tableData =new List<object>() {
new { Id="其123中x213", Name="tab其它语言test", Host="127.0.0.1", Port=80, status ="success" } ,
new { Id="中中123午", Name="中123午tes好demo", Host="127.0.0.1", Port=80, status ="success" } ,
};
ConsoleTableExt.ConsoleTableBuilder
.From<dynamic>(tableData)
//.WithTitle("ALL CENTERS", ConsoleColor.Yellow, ConsoleColor.DarkGray)
.WithFormat(ConsoleTableBuilderFormat.Alternative)
.ExportAndWriteLine(TableAligntment.Left);
Console.ReadLine();
@minhhungit please review RP
thanks @haptear for the PR, merged and released in version 3.1.9
If multiple rows of data contain UTF8 characters, the output is still misformatted. I think the final solution should be to override the 'string.format' method to calculate the final number of spaces that should be added in real time.