From 0f6b203d349ea233355b4aa8553ba2bb240bc92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 27 Feb 2021 14:53:30 +0100 Subject: [PATCH 1/2] Embrace HTML coming from Comic Vine --- YACReaderLibrary/comic_vine/comic_vine_dialog.cpp | 2 +- YACReaderLibrary/qml/ComicInfoView.qml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp index 2bbcd3bf..f922fa83 100644 --- a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp +++ b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp @@ -535,7 +535,7 @@ ComicDB ComicVineDialog::parseComicInfo(ComicDB &comic, const QString &json, int } if (result.contains("description") && !result.value("description").isNull()) { - comic.info.synopsis = result.value("description").toString().remove(QRegExp("<[^>]*>")); //description + comic.info.synopsis = result.value("description"); } if (result.contains("character_credits") && !result.value("character_credits").isNull()) { diff --git a/YACReaderLibrary/qml/ComicInfoView.qml b/YACReaderLibrary/qml/ComicInfoView.qml index f3b408f5..63aa2899 100644 --- a/YACReaderLibrary/qml/ComicInfoView.qml +++ b/YACReaderLibrary/qml/ComicInfoView.qml @@ -258,8 +258,14 @@ Rectangle { font.pixelSize: 15 wrapMode: Text.WordWrap horizontalAlignment: Text.AlignJustify - text: comicInfo.synopsis + text: '' + comicInfo.synopsis + '' visible: comicInfo.synopsis + textFormat: Text.RichText } Text { From 4c8259e835dc0075ba397bac531a3377d3385da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 6 Mar 2021 09:05:24 +0100 Subject: [PATCH 2/2] Update what's new + CHANGELOG --- CHANGELOG.md | 1 + custom_widgets/whats_new_dialog.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34ca206c..5e0e53f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Version counting is based on semantic versioning (Major.Feature.Patch) ### YACReaderLibrary * New search engine. * New `manga` field added to comics and folders to tag content as manga, any content added to a manga folder will become manga automatically. +* Support for HTML in comic synopsis, this fixes the synopsis when it comes from Comic Vine with HTML tags. ## 9.7.1 ### YACReader diff --git a/custom_widgets/whats_new_dialog.cpp b/custom_widgets/whats_new_dialog.cpp index b5c4b429..2fad753b 100644 --- a/custom_widgets/whats_new_dialog.cpp +++ b/custom_widgets/whats_new_dialog.cpp @@ -56,6 +56,7 @@ YACReader::WhatsNewDialog::WhatsNewDialog(QWidget *parent) "YACReaderLibrary
" " • New fuzzy search engine. Type to search into any field of the database, or target specific content \"read:false manga:true filename:3x3\", read more about how it works in the web site.
" " • New `manga` field added to comics and folders to tag content as manga, any content added to a manga folder will become manga automatically.
" + " • Support for HTML in comic synopsis, this fixes the synopsis when it comes from Comic Vine with HTML tags.
" "
" "Server
" " • New `manga` field is sent to YACReader for iOS, so comics tagged as manga will be recognized as such when reading remotely or importing comics.
"