From 72cfafdf2757b6a405933678209e0f8f1b3f025e Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 7 Dec 2014 19:14:19 +0000 Subject: [PATCH] Add BBCode spoiler, text tags to clipboard text. Closes #350. --- src/gui/handler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp index 7aa81b79..35c51d07 100644 --- a/src/gui/handler.cpp +++ b/src/gui/handler.cpp @@ -305,6 +305,7 @@ namespace loot { string text = yout.c_str(); // Get rid of yaml-cpp weirdness. boost::replace_all(text, "! ", ""); + text = "[spoiler][code]" + text + "[/code][/spoiler]"; CopyToClipboard(text); callback->Success(""); } @@ -383,6 +384,7 @@ namespace loot { // Get rid of yaml-cpp weirdness. boost::replace_all(text, "! ", ""); } + text = "[spoiler][code]" + text + "[/code][/spoiler]"; CopyToClipboard(text);