File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed
Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 1- ## This function is the best in the world.
2- ##
3- ## There are no mistakes in it .
4- func best_function () -> String :
5- var new_string : String = """
1+ # This test ensures that trailing white space is preserved in a multi-line
2+ # string after the opening mark and content inside the string, but gets removed
3+ # after the closing multiline string mark and other statements .
4+ func test_trailing_spaces () -> String :
5+ var new_string : String = """
66 This is a multi-line string with trailing spaces.
77 """
88
99 return new_string
10-
11- # EOF
Original file line number Diff line number Diff line change 1- ## This function is the best in the world.
2- ##
3- ## There are no mistakes in it.
4- func best_function () -> String :
1+ # This test ensures that trailing white space is preserved in a multi-line
2+ # string after the opening mark and content inside the string, but gets removed
3+ # after the closing multiline string mark and other statements.
4+ func test_trailing_spaces () -> String :
55 var new_string : String = """
66 This is a multi-line string with trailing spaces.
77 """
88
99 return new_string
10-
11- # EOF
You can’t perform that action at this time.
0 commit comments