diff --git a/src/resources/vnote.ini b/src/resources/vnote.ini index 39a88dc8..72db7cd9 100644 --- a/src/resources/vnote.ini +++ b/src/resources/vnote.ini @@ -334,7 +334,7 @@ editor_font_family= enable_smart_table=true ; Interval (milliseconds) to format table -table_format_interval=3000 +table_format_interval=2000 [export] ; Path of the wkhtmltopdf tool diff --git a/src/vtable.cpp b/src/vtable.cpp index ec9eb1cc..2704e841 100644 --- a/src/vtable.cpp +++ b/src/vtable.cpp @@ -2,6 +2,7 @@ #include #include +#include #include "veditor.h" @@ -465,10 +466,10 @@ QString VTable::generateFormattedText(const QString &p_core, rightSpaces = 0; } - return QString("%1 %2%3%4 ").arg(c_borderChar) - .arg(QString(leftSpaces, ' ')) - .arg(p_core) - .arg(QString(rightSpaces, ' ')); + return QString("%1 %2%3%4 ").arg(c_borderChar, + QString(leftSpaces, ' '), + p_core, + QString(rightSpaces, ' ')); } VTable::Alignment VTable::getColumnAlignment(int p_idx) const