mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Editor: bug fix for smart table caused by QString.arg()
This commit is contained in:
parent
a9fbabb1e9
commit
09df438f2e
@ -334,7 +334,7 @@ editor_font_family=
|
|||||||
enable_smart_table=true
|
enable_smart_table=true
|
||||||
|
|
||||||
; Interval (milliseconds) to format table
|
; Interval (milliseconds) to format table
|
||||||
table_format_interval=3000
|
table_format_interval=2000
|
||||||
|
|
||||||
[export]
|
[export]
|
||||||
; Path of the wkhtmltopdf tool
|
; Path of the wkhtmltopdf tool
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <QTextDocument>
|
#include <QTextDocument>
|
||||||
#include <QTextLayout>
|
#include <QTextLayout>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
#include "veditor.h"
|
#include "veditor.h"
|
||||||
|
|
||||||
@ -465,10 +466,10 @@ QString VTable::generateFormattedText(const QString &p_core,
|
|||||||
rightSpaces = 0;
|
rightSpaces = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return QString("%1 %2%3%4 ").arg(c_borderChar)
|
return QString("%1 %2%3%4 ").arg(c_borderChar,
|
||||||
.arg(QString(leftSpaces, ' '))
|
QString(leftSpaces, ' '),
|
||||||
.arg(p_core)
|
p_core,
|
||||||
.arg(QString(rightSpaces, ' '));
|
QString(rightSpaces, ' '));
|
||||||
}
|
}
|
||||||
|
|
||||||
VTable::Alignment VTable::getColumnAlignment(int p_idx) const
|
VTable::Alignment VTable::getColumnAlignment(int p_idx) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user