mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
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:
@@ -237,12 +237,9 @@ DiagramContext ElementInfoWidget::currentInfo() const
|
||||
if (!eipw->text().isEmpty())
|
||||
{
|
||||
QString txt = eipw->text();
|
||||
//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");
|
||||
info_.addValue(eipw->key(), txt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user