[llvm] [llvm][mustache] Align standalone partial indentation with spec (PR #159185)
Erick Velez via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 28 22:22:59 PDT 2025
================
@@ -292,8 +292,7 @@ void stripTokenBefore(SmallVectorImpl<Token> &Tokens, size_t Idx,
StringRef PrevTokenBody = PrevToken.TokenBody;
StringRef Unindented = PrevTokenBody.rtrim(" \r\t\v");
size_t Indentation = PrevTokenBody.size() - Unindented.size();
- if (CurrentType != Token::Type::Partial)
- PrevToken.TokenBody = Unindented.str();
+ PrevToken.TokenBody = Unindented.str();
----------------
evelez7 wrote:
Is the function comment possibly stale now, since the distinction for partials is no longer made?
```
// The exception for this is partial tag which requires us to
// keep track of the indentation once it's rendered.
```
https://github.com/llvm/llvm-project/pull/159185
More information about the llvm-commits
mailing list