diff options
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index 0af3e432e..2825f1fe0 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -166,14 +166,16 @@ QString DiveObjectHelper::notes() const #define _NOTES_BR "\n" tmp.replace("<thead>", "<thead>" _NOTES_BR) .replace("<br>", "<br>" _NOTES_BR) + .replace("<br/>", "<br/>" _NOTES_BR) + .replace("<br />", "<br />" _NOTES_BR) .replace("<tr>", "<tr>" _NOTES_BR) .replace("</tr>", "</tr>" _NOTES_BR); notes.setHtml(tmp); tmp = notes.toPlainText(); - tmp.replace(_NOTES_BR, "<br>"); + tmp.replace(_NOTES_BR, "<br/>"); #undef _NOTES_BR } else { - tmp.replace("\n", "<br>"); + tmp.replace("\n", "<br/>"); } return tmp; } |