[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Raw" string literals for elisp
From: |
Adam Porter |
Subject: |
Re: "Raw" string literals for elisp |
Date: |
Wed, 08 Sep 2021 09:12:47 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Clément Pit-Claudel <cpitclaudel@gmail.com> writes:
> On 9/8/21 7:34 AM, Adam Porter wrote:
>> For extra bonus points, it would be nice if leading indentation at the
>> beginning of a line in a raw string were omitted, similar to Python's
>> triple-quoted strings.
>
> Python's triple quoted strings don't omit leading indentation, do they?
>
> $ python3
> >>> s = """
> ... aaa
> ... """
> >>> s
> '\n aaa\n '
You're right, they only have that feature when used as docstrings:
<https://www.python.org/dev/peps/pep-0257/#multi-line-docstrings>
- "Raw" string literals for elisp, Anna Glasgall, 2021/09/08
- Re: "Raw" string literals for elisp, Po Lu, 2021/09/08
- Re: "Raw" string literals for elisp, Lars Ingebrigtsen, 2021/09/08
- Re: "Raw" string literals for elisp, Alan Mackenzie, 2021/09/08
- Re: "Raw" string literals for elisp, Adam Porter, 2021/09/08
- Re: "Raw" string literals for elisp, Stefan Monnier, 2021/09/08
- Re: "Raw" string literals for elisp, Philip Kaludercic, 2021/09/08