Really fix the removing of carriage return and line feed.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5817 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2019-03-31 18:43:45 +00:00
parent a7f4be0c12
commit acab6f3dc3
2 changed files with 6 additions and 12 deletions

View File

@@ -182,12 +182,9 @@ void ElementPropertiesEditorWidget::on_m_buttonBox_accepted()
for (QTreeWidgetItem *qtwi : ui->m_tree->invisibleRootItem()->takeChildren())
{
QString txt = qtwi->text(1);
//Replace html line feed
txt.replace("
", " "); //hexa
txt.replace("
", " "); //decimal
//Replace html carriage return
txt.replace("
", " "); //hexa
txt.replace("
", " "); //decimal
//remove line feed and carriage return
txt.remove("\r");
txt.remove("\n");
m_elmt_info.addValue(qtwi->data(0, Qt::UserRole).toString(), txt);
}