emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking in files with trailing white space


From: Stefan Monnier
Subject: Re: Checking in files with trailing white space
Date: Mon, 21 Mar 2016 09:10:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> I'm adding test cases for the shr HTML rendering, and in some of the
> tests there should really be trailing white space in the result files.
> Is there a way to say that the test/data/shr directory should be allowed
> to have trailing spaces in our git/checkin thing?

How 'bout you don't store files with trailing whitespace, but instead
store files which contain code which creates those trailing whitespaces.
E.g.

  (ert-deftest ...
    (with-temp-buffer
      (insert "foo   ")
      <dosomething>))


-- Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]