aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-01-13 16:29:09 +0100
committerRenaud G <renaud@rolisteam.org>2019-01-13 16:33:56 +0100
commit7439bf063097bdf82d99969f189ca5718cbeaaa1 (patch)
tree6554ce9d95ea3eebf6703b5a9b1d5d1afbd1428d /cli
parent5a4b4e48dbbebc71cb4b93209b3ec6258cbc4819 (diff)
downloadOneRoll-7439bf063097bdf82d99969f189ca5718cbeaaa1.tar.gz
OneRoll-7439bf063097bdf82d99969f189ca5718cbeaaa1.zip
manage newline in string result.
Diffstat (limited to 'cli')
-rw-r--r--cli/main.cpp1
1 files changed, 1 insertions, 0 deletions
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)