Sort an outline at every level: Difference between revisions
→{{header|Wren}}: Correction to mixed whitespace code.
(Added Wren) |
(→{{header|Wren}}: Correction to mixed whitespace code.) |
||
Line 344:
indent = currIndent
} else {
var
if (
messages.add(indent + "corrected inconsistent
correctionNeeded =
} else if (currIndent.count
}
if (correctionNeeded) {
var mult = (currIndent.count / indent.count).round
outline[i] = (indent * mult) + line[lc-lc2..-1]
Line 434 ⟶ 436:
" delta",
" gamma",
" \t
" lambda",
" mu"
Line 532 ⟶ 534:
First unspecified outline, ascending sort:
corrected inconsistent whitespace use at line '
alpha
Line 547 ⟶ 549:
First unspecified outline, descending sort:
corrected inconsistent whitespace use at line '
zeta
|