mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
StyleParser: bug fix for code block styles
This commit is contained in:
parent
8f1fbcef61
commit
33c3a5a301
@ -168,8 +168,7 @@ QHash<QString, QTextCharFormat> VStyleParser::fetchCodeBlockStyles(const QFont &
|
||||
{
|
||||
QString attrName(attrs->name);
|
||||
QString attrValue(attrs->value->string);
|
||||
QTextCharFormat format;
|
||||
format.setFontFamily(baseFormat.fontFamily());
|
||||
QTextCharFormat format = baseFormat;
|
||||
|
||||
QStringList items = attrValue.split(',', QString::SkipEmptyParts);
|
||||
for (auto const &item : items) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user