assistant: no need for raw strings

This commit is contained in:
Maxime Coste 2013-03-01 14:29:28 +01:00
parent 3a60e633a4
commit 6318f2268f

View File

@ -555,14 +555,14 @@ void menu(const CommandParameters& params, Context& context)
static String assist(String message, CharCount maxWidth)
{
static const std::vector<String> assistant =
{ R"( ╭──╮ )",
R"( │ │ )",
R"( @ @ ╭)",
R"( ││ ││ │)",
R"( ││ ││ ╯)",
R"( │╰─╯│ )",
R"( ╰───╯ )",
R"( )" };
{ " ╭──╮ ",
" │ │ ",
" @ @ ╭",
" ││ ││ │",
" ││ ││ ╯",
" │╰─╯│ ",
" ╰───╯ ",
" " };
const CharCount maxBubbleWidth = maxWidth - assistant[0].char_length() - 6;
CharCount bubbleWidth = 0;