( )⚙ D7432 templates: make {indent("", " ")} be empty

This is an archive of the discontinued Mercurial Phabricator instance.

templates: make {indent("", " ")} be empty
ClosedPublic

Authored by martinvonz on Nov 15 2019, 1:18 PM.

Details

Summary

indent() is documented to indent all non-empty lines, but it made an
exception for the first line, which always got indented. I also made
indent() not indent the first line even if an indent override was
given for the first line. I think that is what one would usually want.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

martinvonz created this revision.Nov 15 2019, 1:18 PM
pulkit accepted this revision.Nov 18 2019, 11:15 AM
This revision is now accepted and ready to land.Nov 18 2019, 11:15 AM
This revision was automatically updated to reflect the committed changes.