mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Remove indents from list generator
This commit is contained in:
parent
53e8bd659a
commit
3400d19132
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue