Remove indents from list generator

This commit is contained in:
Sei Lisa 2021-05-08 18:45:15 +02:00
parent 53e8bd659a
commit 3400d19132

View file

@ -29,18 +29,18 @@ string DumpFloat(float f)
string AddLine(string lines, string lineToAdd) string AddLine(string lines, string lineToAdd)
{ {
if (llStringLength(llStringToBase64(lines + "\n\t, " + lineToAdd)) > 1364) if (llStringLength(llStringToBase64(lines + "\n, " + lineToAdd)) > 1364)
{ {
llSay(0, lines); llSay(0, lines);
lines = "\n\t, " + lineToAdd; lines = "\n, " + lineToAdd;
llSleep(1); llSleep(1);
} }
else else
{ {
if (lines == "") if (lines == "")
lines = "\n\t[ " + lineToAdd; lines = "\n[ " + lineToAdd;
else else
lines = lines + "\n\t, " + lineToAdd; lines = lines + "\n, " + lineToAdd;
} }
return lines; return lines;
} }
@ -78,8 +78,8 @@ DumpListLSL(list L)
else else
ret = AddLine(ret, llList2CSV(llList2List(L, i, i))); ret = AddLine(ret, llList2CSV(llList2List(L, i, i)));
} }
if (ret == "") ret = "\n\t["; if (ret == "") ret = "\n[";
llSay(0, ret + "\n\t]"); llSay(0, ret + "\n]");
} }
default default