mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
fix IOFormat alignment
This commit is contained in:
parent
a0d32e40d9
commit
41e46ed243
@ -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--;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user