Skip to content

Commit

Permalink
Single indent with multiple lines of comment #46
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvarga committed Dec 19, 2017
1 parent 8a3db2d commit d64985f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MFormatter.m
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@
actCodeFinal = obj.performReplacements(actCode);
end

line = [strtrim(actCodeFinal), ' ', actComment];
if ~obj.IsInBlockComment
line = [strtrim(actCodeFinal), ' ', actComment];
else
line = [strtrim(actCodeFinal), actComment];
end
replacedTextArray = [replacedTextArray, {line, sprintf('\n')}];
end
% The last new-line must be removed: inner new-lines are removed by the split, the last one is an additional one
Expand Down

0 comments on commit d64985f

Please sign in to comment.