summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/parsetreenode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/parsetreenode.cpp')
-rw-r--r--utils/themeeditor/parsetreenode.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/utils/themeeditor/parsetreenode.cpp b/utils/themeeditor/parsetreenode.cpp
index b283e13038..70124c338d 100644
--- a/utils/themeeditor/parsetreenode.cpp
+++ b/utils/themeeditor/parsetreenode.cpp
@@ -107,6 +107,8 @@ QString ParseTreeNode::genCode() const
if(children[i]->element->type == TAG)
buffer.append(TAGSYM);
buffer.append(children[i]->genCode());
+ if(element->type == LINE || i == 0)
+ buffer.append('\n');
}
break;
@@ -117,6 +119,7 @@ QString ParseTreeNode::genCode() const
if(i != children.count() - 1)
buffer.append(MULTILINESYM);
}
+ buffer.append('\n');
break;
case CONDITIONAL:
@@ -156,10 +159,6 @@ QString ParseTreeNode::genCode() const
}
break;
- case NEWLINE:
- buffer.append('\n');
- break;
-
case TEXT:
for(char* cursor = element->text; *cursor; cursor++)
{
@@ -253,9 +252,6 @@ QVariant ParseTreeNode::data(int column) const
case TAG:
return QObject::tr("Tag");
- case NEWLINE:
- return QObject::tr("Newline");
-
case TEXT:
return QObject::tr("Plaintext");
}
@@ -295,9 +291,6 @@ QVariant ParseTreeNode::data(int column) const
case CONDITIONAL:
return QString();
- case NEWLINE:
- return QObject::tr("\\n");
-
case TEXT:
case COMMENT:
return QString(element->text);