fix IOFormat alignment

This commit is contained in:
Charles Schlosser 2024-12-04 01:13:48 +00:00
parent a0d32e40d9
commit 41e46ed243

View File

@ -68,8 +68,8 @@ struct IOFormat {
// TODO check if rowPrefix, rowSuffix or rowSeparator contains a newline
// don't add rowSpacer if columns are not to be aligned
if ((flags & DontAlignCols)) return;
int i = int(matSuffix.length()) - 1;
while (i >= 0 && matSuffix[i] != '\n') {
int i = int(matPrefix.length()) - 1;
while (i >= 0 && matPrefix[i] != '\n') {
rowSpacer += ' ';
i--;
}