From 5e29715201f3b67648728a0cd048fd1b3e1dbcf7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 8 Dec 2019 02:25:03 +0100 Subject: Add replying to posts (image boards), changed keybinding of writing a post (image boards) --- src/plugins/Fourchan.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp index f19d3aa..88bcafa 100644 --- a/src/plugins/Fourchan.cpp +++ b/src/plugins/Fourchan.cpp @@ -212,6 +212,8 @@ namespace QuickMedia { } } ); + if(!comment_text.empty() && comment_text.back() == '\n') + comment_text.back() = ' '; html_unescape_sequences(comment_text); // TODO: Do the same when wrapping is implemented int num_lines = 0; @@ -333,6 +335,8 @@ namespace QuickMedia { } } ); + if(!comment_text.empty() && comment_text.back() == '\n') + comment_text.back() = ' '; html_unescape_sequences(comment_text); BodyItem *body_item = result_items[body_item_index].get(); body_item->set_title(std::move(comment_text)); -- cgit v1.2.3