The autoformatting feature doesn't indent wrapped lines
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
The autoformatting and the autoindentation feature don't indent wrapped lines (by the usage of \\).
This is a simple fix, because one has to transfer the logic from NumeReEditor::determineIndentationLevelMATLAB() to NumeReEditor::determineIndentationLevelNSCR(), which means to include the following two lines:
if (this->GetStyleAt(i) == wxSTC_NSCR_OPERATORS && this->GetTextRange(i, i + 2) == "\\\\")
singleLineIndent = 1;
This fix was tested on the example script "chargedistribution.nscr". No deviations occured. Bug fix implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Related
Commit: [r435]
Diff: