mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Makes examine block HR's format better collapse (#13235)
* Makes examine HR's automatically collapse * length * code formatting
This commit is contained in:
@@ -493,9 +493,14 @@
|
||||
|
||||
//SKYRAT EDIT ADDITION
|
||||
if(result.len)
|
||||
for(var/i = 1, i <= result.len, i++)
|
||||
if(!findtext(result[i], "<hr>"))
|
||||
for(var/i in 1 to length(result))
|
||||
if(result[i] != EXAMINE_SECTION_BREAK)
|
||||
result[i] += "\n"
|
||||
else
|
||||
// remove repeated <hr's> and ones on the ends.
|
||||
if((i == 1) || (i == length(result)) || (result[i - 1] == EXAMINE_SECTION_BREAK))
|
||||
result.Cut(i, i + 1)
|
||||
i--
|
||||
//SKYRAT EDIT END
|
||||
|
||||
to_chat(src, "<div class='examine_block'><span class='infoplain'>[result.Join()]</span></div>") //SKYRAT EDIT CHANGE
|
||||
|
||||
Reference in New Issue
Block a user