diff --git a/module/other/stat-parser-macro.js b/module/other/stat-parser-macro.js index 1be9956..10acd86 100644 --- a/module/other/stat-parser-macro.js +++ b/module/other/stat-parser-macro.js @@ -138,15 +138,22 @@ function GetNotesFromInput(inputText) { try { if (results != null && results.length > 0) { - [notes] = results; - notes = notes.replace("\n", " "); + let output = ""; + + const lines = results[0].split(/\r?\n/); + + for (var i = 0; i < lines.length; i++) { + output += lines[i] + "
"; + } + + notes = output; } } catch (ex) { console.log("GetNotesFromInput Error"); console.log(ex); } - return notes; + return [notes]; } function GetArmorFromInput(inputText) {