[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67180: 30.0.50; 'pp-to-string' emits extra newline
From: |
Stefan Monnier |
Subject: |
bug#67180: 30.0.50; 'pp-to-string' emits extra newline |
Date: |
Wed, 15 Nov 2023 07:52:50 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> On Emacs 29 and earlier, with `-Q`, we have:
>>
>> (pp-to-string "foo")
>> => "\"foo\""
>>
>> On master with `-Q`, we get an extra newline at the end of the string:
>>
>> (pp-to-string "foo")
>> => "\"foo\"
>> "
Is that a problem?
I also see that the old `pp-to-string` added that same extra newline for
slightly more complex input:
ELISP> (pp-to-string '("foo"))
"(\"foo\")
"
ELISP>
> Stefan, is this due to your changes in pp?
Yes.
Stefan