Skip to content

Commit 1f68236

Browse files
committed
Prior art: add inspect.cleandoc from Python
1 parent d0b4c27 commit 1f68236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3830-dedented-string-literals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ In other languages:
17821782
- _Scala_ - [multiline strings](https://docs.scala-lang.org/overviews/scala-book/two-notes-about-strings.html)
17831783
using triple-quotes and `.stripMargin`.
17841784
- _C#_ - [Raw string literals](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/raw-string)
1785-
- _Python_ - [multiline strings](https://docs.python.org/3/library/textwrap.html) using triple-quotes
1785+
- _Python_ - [multiline strings](https://docs.python.org/3/library/textwrap.html) using triple-quotes and [`inspect.cleandoc`](https://docs.python.org/3/library/inspect.html#inspect.cleandoc)
17861786
to avoid escaping and `textwrap.dedent`.
17871787
- _Jsonnet_ - [text blocks](https://jsonnet.org/learning/tutorial.html) with `|||` as a delimiter.
17881788
- _Bash_ - [`<<-` Heredocs](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_07_04).

0 commit comments

Comments
 (0)