GNU bug report logs - #61503
29.0.60; js-ts-mode indent incorrect for multiline strings

Previous Next

Package: emacs;

Reported by: Geoff Jacobsen <geoffjacobsen <at> gmail.com>

Date: Tue, 14 Feb 2023 06:32:02 UTC

Severity: normal

Found in version 29.0.60

Fixed in version 29.1

Done: Theodor Thornhill <theo <at> thornhill.no>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Theodor Thornhill <theo <at> thornhill.no>
To: Geoff Jacobsen <geoffjacobsen <at> gmail.com>
Cc: 61503 <at> debbugs.gnu.org
Subject: bug#61503: 29.0.60; js-ts-mode indent incorrect for multiline strings
Date: Tue, 14 Feb 2023 20:56:55 +0100
Geoff Jacobsen <geoffjacobsen <at> gmail.com> writes:

> When a multiline (backquote) string is defined in a buffer, with
> major-mode js-ts-mode, the indent function incorrectly indents the
> contents of the string. It should not alter the contents of the string.
>
> Example:
>
> const a = {
>   b: `1
> 2
> 3
> `};
>
> is incorrectly changed to:
>
> const a = {
>   b: `1
>   2
>   3
> `};

Hi! Thanks for your report!

It should be fixed now on latest emacs-29 branch :-)

Theo




This bug report was last modified 2 years and 97 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.