From 8baf830b92ca2cb1cef2d7af27ec397b8edb4000 Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Thu, 18 Nov 2021 18:01:18 +0100 Subject: [PATCH] Add some comments for clarification --- tests/valid/string/multiline.toml | 6 ++++++ tests/valid/string/raw-multiline.toml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/tests/valid/string/multiline.toml b/tests/valid/string/multiline.toml index 0704848..f3b3c2e 100644 --- a/tests/valid/string/multiline.toml +++ b/tests/valid/string/multiline.toml @@ -1,8 +1,13 @@ # NOTE: this file includes some literal tab characters. multiline_empty_one = """""" + +# A newline immediately following the opening delimiter will be trimmed. multiline_empty_two = """ """ + +# \ at the end of line trims newlines as well; note that last \ is followed by +# two spaces, which are ignored. multiline_empty_three = """\ """ multiline_empty_four = """\ @@ -33,6 +38,7 @@ whitespace-after-bs = """\ no-space = """a\ b""" +# Has tab character. keep-ws-before = """a \ b""" diff --git a/tests/valid/string/raw-multiline.toml b/tests/valid/string/raw-multiline.toml index 8094c03..293f803 100644 --- a/tests/valid/string/raw-multiline.toml +++ b/tests/valid/string/raw-multiline.toml @@ -1,6 +1,11 @@ +# Single ' should be allowed. oneline = '''This string has a ' quote character.''' + +# A newline immediately following the opening delimiter will be trimmed. firstnl = ''' This string has a ' quote character.''' + +# All other whitespace and newline characters remain intact. multiline = ''' This string has ' a quote character