From 4b1f37edf740c0d7c6ac167c96ae17238811c325 Mon Sep 17 00:00:00 2001 From: Thomas <71355143+thomas694@users.noreply.github.com> Date: Sun, 19 May 2024 23:40:54 +0200 Subject: [PATCH] Fix issue #530 Downloaded conversation posts are saved incorrectly in text mode --- .../TumblThree.Applications/Parser/TumblrApiJsonToText.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/TumblThree/TumblThree.Applications/Parser/TumblrApiJsonToText.cs b/src/TumblThree/TumblThree.Applications/Parser/TumblrApiJsonToText.cs index 42e2cec8..b3b15de2 100644 --- a/src/TumblThree/TumblThree.Applications/Parser/TumblrApiJsonToText.cs +++ b/src/TumblThree/TumblThree.Applications/Parser/TumblrApiJsonToText.cs @@ -106,10 +106,9 @@ public string ParseConversation(T post) Environment.NewLine + string.Format(CultureInfo.CurrentCulture, Resources.ReblogName, post.RebloggedFromName) + Environment.NewLine + - string.Format(CultureInfo.CurrentCulture, Resources.Quote, - post.Conversation?.Select(dialogue => new { name = dialogue.Name, phrase = dialogue.Phrase })) + + string.Format(CultureInfo.CurrentCulture, Resources.Title, post.ConversationTitle) + Environment.NewLine + - string.Format(CultureInfo.CurrentCulture, Resources.Body, post.RegularBody) + + string.Format(CultureInfo.CurrentCulture, Resources.Body, post.ConversationText.Replace("\n", Environment.NewLine + new string(' ', Resources.Body.Replace("{0}", "").Length))) + Environment.NewLine + string.Format(CultureInfo.CurrentCulture, Resources.Tags, string.Join(", ", post.Tags.ToArray())) +