From 4f89244065f5725e97e861b156a3c565c32e2345 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 4 Feb 2017 19:54:02 -0800 Subject: [PATCH] attempt at reparsing but propbably won't keep --- assets/PostItem.qml | 19 +++++++++++++++++-- translations/Goober.ts | 23 +++++++++-------------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/assets/PostItem.qml b/assets/PostItem.qml index 049c62c..5a58eb2 100644 --- a/assets/PostItem.qml +++ b/assets/PostItem.qml @@ -136,10 +136,25 @@ Container { topMargin: ui.sdu(2.0) bottomMargin: ui.sdu(2.0) Label { - text: (ListItemData.is_deleted) ? qsTr("{{POST DELETED}}") : ListItemData.content.text + //text: (ListItemData.is_deleted) ? qsTr("{{POST DELETED}}") : (ListItemData.content.html).replace(/
/g,"
") + text: { + var text + if (ListItemData.is_deleted) { + text = "{{POST DELETED}}" + } else { + text = (ListItemData.content.html).replace(/
/g,"
") + text = text = text.replace(/&[^amp;]/g,"&"); + } + return text + } multiline: true - //textFormat: TextFormat.Html + textFormat: TextFormat.Html } +// Label { +// text: ListItemData.content.html +// multiline: true +// textFormat: TextFormat.Plain +// } } Container { layout: DockLayout {} diff --git a/translations/Goober.ts b/translations/Goober.ts index db39926..2162349 100644 --- a/translations/Goober.ts +++ b/translations/Goober.ts @@ -30,52 +30,47 @@ PostItem - - <i>{{POST DELETED}}</i> - - - - + Reply - + Reply All - + Add Bookmark - + Delete Bookmark - + Repost - + Delete Repost - + Quote - + View Profile - + Delete