The stars() helper proc no longer breaks HTML tags

This commit is contained in:
Amunak
2014-11-26 16:09:48 +01:00
parent a90dc80bb8
commit 0ccf63bc2a
+8 -2
View File
@@ -247,11 +247,17 @@ var/list/global/organ_rel_size = list(
n = length(n)
var/p = null
p = 1
var/intag = 0
while(p <= n)
if ((copytext(te, p, p + 1) == " " || prob(pr)))
t = text("[][]", t, copytext(te, p, p + 1))
var/char = copytext(te, p, p + 1)
if (char == "<") //let's try to not break tags
intag = !intag
if (intag || char == " " || prob(pr))
t = text("[][]", t, char)
else
t = text("[]*", t)
if (char == ">")
intag = !intag
p++
return t