branch: externals/matlab-mode commit 5be1421dff5d7236992a708295bb90b2e3c57342 Author: John Ciolfi <john.ciolfi...@gmail.com> Commit: John Ciolfi <john.ciolfi...@gmail.com>
t-utils: add comment on why we trim the indent results --- tests/t-utils.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/t-utils.el b/tests/t-utils.el index 72b59ee42f..23175afa51 100644 --- a/tests/t-utils.el +++ b/tests/t-utils.el @@ -1040,6 +1040,8 @@ See `t-utils-test-indent' for LINE-MANIPULATOR." (call-interactively #'indent-for-tab-command)) (forward-line)) + ;; By design indent-for-tab-command adds whitespace up to the indent level for code insertion + ;; on a "blank" line. To simplify our baselines, we remove this extra space. (t-utils--trim) (let ((typing-got (buffer-substring (point-min) (point-max))) @@ -1247,7 +1249,10 @@ To debug a specific indent test file (when indent-checker (funcall indent-checker)) + ;; By design indent-for-tab-command adds whitespace up to the indent level for code + ;; insertion on a "blank" line. To simplify our baselines, we remove this extra space. (t-utils--trim) + (let ((got (buffer-substring (point-min) (point-max))) (got-file (concat expected-file "~")))