From ce6c0edc91f6533b10129e75f32322fca9a74b3f Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 23 Mar 2021 09:14:15 +0100 Subject: [PATCH] restable: cant use reslitdateformat which is html. Use setPlainText when displaying doc text in the detail area --- src/qtgui/restable.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qtgui/restable.cpp b/src/qtgui/restable.cpp index b740c1c9..a573465b 100644 --- a/src/qtgui/restable.cpp +++ b/src/qtgui/restable.cpp @@ -220,7 +220,8 @@ static string datetimegetter(const string&, const Rcl::Doc& doc) time_t mtime = doc.dmtime.empty() ? atoll(doc.fmtime.c_str()) : atoll(doc.dmtime.c_str()); struct tm *tm = localtime(&mtime); - datebuf = utf8datestring(prefs.reslistdateformat.c_str(), tm); + // Can't use reslistdateformat because it's html (  etc.) + datebuf = utf8datestring("%Y-%m-%d %H:%M:%S", tm); } return datebuf; } @@ -899,7 +900,7 @@ void ResTable::onTableView_currentChanged(const QModelIndex& index) m_rowchangefromkbd = false; bool loadok = rcldb->getDocRawText(m_detaildoc); if (loadok) { - m_detail->setText(u8s2qs(m_detaildoc.text)); + m_detail->setPlainText(u8s2qs(m_detaildoc.text)); } } else { m_pager->displaySingleDoc(theconfig, m_detaildocnum, m_detaildoc,