diff --git a/sources/ui/elementinfowidget.cpp b/sources/ui/elementinfowidget.cpp index 06da50d30..115381d78 100644 --- a/sources/ui/elementinfowidget.cpp +++ b/sources/ui/elementinfowidget.cpp @@ -231,9 +231,19 @@ DiagramContext ElementInfoWidget::currentInfo() const { DiagramContext info_; - for (ElementInfoPartWidget *eipw : m_eipw_list) { - if (!eipw->text().isEmpty()) { //add value only if they're something to store - info_.addValue(eipw->key(), eipw->text()); + for (ElementInfoPartWidget *eipw : m_eipw_list) + { + //add value only if they're something to store + 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 + info_.addValue(eipw->key(), txt); } }