MBeautifier icon indicating copy to clipboard operation
MBeautifier copied to clipboard

Worng indentation with formatFileNoEditor

Open Wave89 opened this issue 1 year ago • 2 comments

if there keywords like "if", "while", "for", "function" in comments (e.g. "% this should be done while ...") , strings (e.g. variable1 ="while the sun is shining") or commands (e.g. "dbstop if error") the function formatFileNoEditor is not working properly with indentation.

Wave89 avatar May 07 '23 10:05 Wave89

Similarly, it doesn't get the end correct (indents it too far).

WORKAROUND: Use the formatFile function instead,

RodneyRichardson avatar Feb 23 '24 15:02 RodneyRichardson