diff options
author | Congcong Cai <congcongcai0907@163.com> | 2025-03-27 02:16:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-27 02:16:27 +0800 |
commit | a80aad28123101539134c277c6904905016754ca (patch) | |
tree | 2539a25323b49fd72d29b726906f1cd2c52c36d1 /llvm/unittests/Support | |
parent | 6a371c7744c276c872fec4947f1642789e5b24ec (diff) | |
download | llvm-a80aad28123101539134c277c6904905016754ca.zip llvm-a80aad28123101539134c277c6904905016754ca.tar.gz llvm-a80aad28123101539134c277c6904905016754ca.tar.bz2 |
[YAML] fix output incorrect format for block scalar string (#132897)
After outputting block scalar string, the indent will be wrong.
This patch fixes Padding after block scalar string to ensure the correct
format of yaml.
The new added ut will fail in main.
```diff
@@ -3,4 +3,4 @@
Just a block
scalar doc
-scalar: a
+ scalar: a
...\n
```
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r-- | llvm/unittests/Support/YAMLIOTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/YAMLIOTest.cpp b/llvm/unittests/Support/YAMLIOTest.cpp index f03563c..080f2b96 100644 --- a/llvm/unittests/Support/YAMLIOTest.cpp +++ b/llvm/unittests/Support/YAMLIOTest.cpp @@ -1298,7 +1298,7 @@ TEST(YAMLIO, TestScalarAfterBlockScalar) { - block_scalac: | AA BB -scalar: a + scalar: a ... )"); } |