[erlang-questions] Indentation of multiline strings

Vlad Dumitrescu vladdu55@REDACTED
Fri Feb 7 17:21:28 CET 2014


On Fri, Feb 7, 2014 at 5:17 PM, Steve Vinoski <vinoski@REDACTED> wrote:
> Another consideration I forgot to mention is that I assume that a goal of
> the formatting specification and any tools that implement it would be that
> they would be capable of reformatting most of the existing OTP code such
> that the only changes would be whitespace changes, e.g. turning tabs into
> spaces or removing trailing whitespace. This assumption is based on the
> notion of being able to format code before commit in a way that avoids
> non-whitespace changes that are irrelevant to the functionality of the
> patch. If this assumption is valid, then given that most of the OTP code was
> likely written in emacs and formatted with erlang-mode, it's best to use it
> as the starting point.

Yes, absolutely. An indenter is a formatter that is not allowed to
break/collate lines, so I think the same basic rules apply.

/Vlad



More information about the erlang-questions mailing list