From 7d15048221b00550bafe2a9228eba344c2cab8aa Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Mon, 28 Aug 2017 02:19:54 -0500 Subject: [PATCH] file2list passes the file thru trim() --- code/__HELPERS/type2type.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/type2type.dm b/code/__HELPERS/type2type.dm index 7df96c3da2..60b5d82940 100644 --- a/code/__HELPERS/type2type.dm +++ b/code/__HELPERS/type2type.dm @@ -72,7 +72,9 @@ return . //Splits the text of a file at seperator and returns them in a list. -/world/proc/file2list(filename, seperator="\n") +/world/proc/file2list(filename, seperator="\n", trim = TRUE) + if (trim) + return splittext(trim(file2text(filename)),seperator) return splittext(file2text(filename),seperator) //Turns a direction into text @@ -551,4 +553,4 @@ return /atom else return /datum - return text2path(copytext(string_type, 1, last_slash)) \ No newline at end of file + return text2path(copytext(string_type, 1, last_slash))