From 7439bf063097bdf82d99969f189ca5718cbeaaa1 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 13 Jan 2019 16:29:09 +0100 Subject: manage newline in string result. --- cli/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/main.cpp') diff --git a/cli/main.cpp b/cli/main.cpp index e93c492..edefd27 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -319,6 +319,7 @@ int startDiceParsing(QStringList& cmds,QString& treeFile,bool withColor, EXPORTF stringResult.replace("%1",scalarText); stringResult.replace("%2",listOfDiceResult.join(",").trimmed()); stringResult.replace("%3",lastScalarText); + stringResult.replace("\\n", "\n"); int i = strLst.size(); for(auto it = strLst.rbegin(); it != strLst.rend() ; ++it) -- cgit v1.2.3-70-g09d2