Open ThunderFrame opened 7 years ago
Hmm, I think the indenter might still be ignoring/stripping line numbers.
The indentation actually is consistent, it's the line numbering that isn't. Typically in a line-numbered program you'll have consistent-width line numbers, like this:
Sub foo()
100000 Dim x
100001 Dim x
100010 Dim x
100100 Dim x
101000 Dim x
110000 Dim x
End Sub
Before indent:
'After indent
Arguably, the indentation should scan for the longest line number length, and then indent at a multiple of the standard-indent-size, like the following, where the line-number length forces indentation to 8 spaces (2x 4 spaces):