Anonymous user
Module:Inventory slot: Difference between revisions
m
Fixed line break appearing in the end result instead of "\n"
imported>Ttv pedro270707 mNo edit summary |
imported>Ttv pedro270707 m (Fixed line break appearing in the end result instead of "\n") |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.formatDescription(description, preferredLineLength) | function p.formatDescription(description, preferredLineLength) | ||
Line 11: | Line 10: | ||
if lineLength > preferredLineLength then | if lineLength > preferredLineLength then | ||
lineLength = 0 | lineLength = 0 | ||
result = result .. "\n§8" | result = result .. "\\n§8" | ||
else | else | ||
result = result .. c | result = result .. c |