From 6e8c23a85895d3000e65d9b977c2a45622d70026 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sat, 7 Oct 2017 12:24:35 +0200 Subject: [PATCH] Use strReplace where it simplifies reading and saves code. --- AVsitter2/Plugins/AVprop/[AV]menu.lsl | 2 +- AVsitter2/[AV]select.lsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AVsitter2/Plugins/AVprop/[AV]menu.lsl b/AVsitter2/Plugins/AVprop/[AV]menu.lsl index b1698cb..72a12a7 100644 --- a/AVsitter2/Plugins/AVprop/[AV]menu.lsl +++ b/AVsitter2/Plugins/AVprop/[AV]menu.lsl @@ -599,7 +599,7 @@ default } if (command == "TEXT") { - custom_text = llDumpList2String(llParseStringKeepNulls(part0, ["\\n"], []), "\n"); + custom_text = strReplace(part0, "\\n", "\n"); } part0 = llGetSubString(part0, 0, 22); if (command == "MENU") diff --git a/AVsitter2/[AV]select.lsl b/AVsitter2/[AV]select.lsl index 9e0a6fb..e2c52ff 100644 --- a/AVsitter2/[AV]select.lsl +++ b/AVsitter2/[AV]select.lsl @@ -199,7 +199,7 @@ default string part0 = llList2String(parts, 0); if (command == "TEXT") { - CUSTOM_TEXT = llDumpList2String(llParseStringKeepNulls(part0, ["\\n"], []), "\n") + "\n"; + CUSTOM_TEXT = strReplace(part0, "\\n", "\n") + "\n"; } else if (command == "SITTER") {