mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use and handle <br/> in DiveObjectHelper
Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
parent
0e7fe1b852
commit
18644c89f6
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue