Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up whitespace logic in standalone lines scanner
Summary: When we strip a standalone partial, per the mustache spec we have to retain the indentation on the left side: ``` // the two spaces in front must be in the output // spaces to the right are removed {{#partial foo}} ``` There can only ever be 0 or 1 `tok::whitespace` on the left. The current code performs an iteration which implies there's more going on. Reviewed By: rmakheja Differential Revision: D68994634 fbshipit-source-id: 1d7c0640a130dcea6da4561bc2c7d938293f669e
- Loading branch information