Paper Input Box Fix

- Created a copy of stripped_input called stripped_multiline_input that
does the same, expect it is a multiline input.
- Makes the writing input box multi-line again.
- Renaming paper now uses the stripped_input.
- Fixes https://github.com/tgstation/-tg-station/issues/7132
This commit is contained in:
Deantwo
2015-01-19 17:13:08 +01:00
parent 8ddff140d5
commit 0e150ced74
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -76,7 +76,7 @@
H << "<span class='warning'>You cut yourself on the paper! Ahhhh! Ahhhhh!</span>"
H.damageoverlaytemp = 9001
return
var/n_name = copytext(sanitize(input(usr, "What would you like to label the paper?", "Paper Labelling", null) as text), 1, MAX_NAME_LEN)
var/n_name = stripped_input("What would you like to label the paper?", "Paper Labelling")
if((loc == usr && usr.stat == 0))
name = "paper[(n_name ? text("- '[n_name]'") : null)]"
add_fingerprint(usr)
@@ -243,7 +243,7 @@
if(href_list["write"])
var/id = href_list["write"]
var/t = stripped_input("Enter what you want to write:", "Write")
var/t = stripped_multiline_input("Enter what you want to write:", "Write")
var/obj/item/i = usr.get_active_hand() //Check to see if he still got that darn pen, also check if he's using a crayon or pen.
var/iscrayon = 0
if(!istype(i, /obj/item/weapon/pen))