From da4f884b467a1421e076c5a55c76af4c48847574 Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Sat, 28 Dec 2013 07:49:43 -0600 Subject: [PATCH] PDA Nano-UI Fix. Fixes the line breaks in notes so it doesn't piss of nanoUI when you have multiple lines. Also fixed quotes, this will remove the ability to use less then and greater then in notes but not much I can do about that without adding a bunch of replacetext procs encoding and decoding only those items. --- code/game/objects/items/devices/PDA/PDA.dm | 5 +++-- nano/templates/pda.tmpl | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index 4631577172..36d52246b3 100755 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -619,8 +619,9 @@ var/global/list/obj/item/device/pda/PDAs = list() if (in_range(src, U) && loc == U) n = copytext(adminscrub(n), 1, MAX_MESSAGE_LEN) if (mode == 1) - note = replacetext(n, "\n", "
") - notehtml = n + note = html_decode(n) + notehtml = note + note = replacetext(note, "\n", "
") else ui.close() if("Toggle Messenger") diff --git a/nano/templates/pda.tmpl b/nano/templates/pda.tmpl index 81b7774245..eb0432cf41 100644 --- a/nano/templates/pda.tmpl +++ b/nano/templates/pda.tmpl @@ -165,7 +165,7 @@ Used In File(s): \code\game\objects\items\devices\PDA\PDA.dm Notes: -
+
{^{:note}}