aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Fourchan.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-08 02:25:03 +0100
committerdec05eba <dec05eba@protonmail.com>2019-12-08 02:25:03 +0100
commit5e29715201f3b67648728a0cd048fd1b3e1dbcf7 (patch)
tree641c63fec25861f32b135c9997972bb0ec10887c /src/plugins/Fourchan.cpp
parent9a5412b692ec79a2688998db2f7b554e829e3278 (diff)
Add replying to posts (image boards), changed keybinding of writing a post (image boards)
Diffstat (limited to 'src/plugins/Fourchan.cpp')
-rw-r--r--src/plugins/Fourchan.cpp4
1 files changed, 4 insertions, 0 deletions
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));