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))