aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/plannernotes.c2
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/core/plannernotes.c b/core/plannernotes.c
index f768698ac..90f37add7 100644
--- a/core/plannernotes.c
+++ b/core/plannernotes.c
@@ -120,7 +120,7 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
}
if (diveplan->surface_interval < 0) {
- put_format(&buf, "<div><b>%s (%s) %s<br>",
+ put_format(&buf, "<div><b>%s (%s) %s<br></div>",
translate("gettextFromC", "Subsurface"),
subsurface_canonical_version(),
translate("gettextFromC", "dive plan</b> (overlapping dives detected)"));
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index cb186db02..7112458f1 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -433,7 +433,7 @@ void MainTab::updateDiveInfo(bool clear)
ui.notes->setText(QString());
if (!clear) {
QString tmp(displayed_dive.notes);
- if (tmp.indexOf("<table") != -1) {
+ if (tmp.indexOf("<div") != -1) {
tmp.replace(QString("\n"), QString("<br>"));
ui.notes->setHtml(tmp);
} else {
@@ -1427,7 +1427,7 @@ void MainTab::on_notes_textChanged()
if (same_string(displayed_dive.notes, qPrintable(ui.notes->toPlainText())))
return;
free(displayed_dive.notes);
- if (ui.notes->toHtml().indexOf("<table") != -1)
+ if (ui.notes->toHtml().indexOf("<div") != -1)
displayed_dive.notes = copy_qstring(ui.notes->toHtml());
else
displayed_dive.notes = copy_qstring(ui.notes->toPlainText());
@@ -1512,7 +1512,7 @@ void MainTab::showAndTriggerEditSelective(struct dive_components what)
SHOW_SELECTIVE(suit);
if (what.notes) {
QString tmp(displayed_dive.notes);
- if (tmp.contains("<table")) {
+ if (tmp.contains("<div")) {
tmp.replace(QString("\n"), QString("<br>"));
ui.notes->setHtml(tmp);
} else {