davidvarga / MBeautifier

MBeautifier is a MATLAB source code formatter, beautifier. It can be used directly in the MATLAB Editor and it is configurable.
GNU General Public License v3.0
490 stars 77 forks source link

Feature: New specialrule to set number of blank (empty) lines at start of file #91

Closed asmfstatoil closed 4 years ago

asmfstatoil commented 4 years ago

Added: StartingNewlineCount to xml and implemented code in MFormatter similar to code for handleTrailingEmptyLines.

Also replaced a for loop with repmat and made some whitespace changes