Benjamin Carlsson
2351d9e1b6
Avoid an extra blank quote line when pasting text with a trailing newline ( #52418 )
...
## Why
Pasting text ending in a newline into a composer line beginning with `> ` adds an unnecessary empty quoted line before the next Markdown block.
## What changed
Remove one trailing newline from nonempty blockquote paste content before adding quote prefixes. Preserve interior blank lines and the two unquoted newlines that move the cursor to the next block.
## Testing
Add a trailing-newline regression case, update the CRLF/CR expectations, and exercise trailing-newline input in the existing rendering snapshot test.
GitOrigin-RevId: 2367efa8253dd0512de8ba6333b39eba6381fba8
2026-10-09 05:12:54 +00:00
..
2026-10-02 04:02:14 +00:00
2026-10-07 12:47:04 +00:00
2026-09-30 17:33:59 +00:00
2026-10-08 05:29:11 +00:00
2026-09-30 00:51:39 +00:00
2026-10-09 03:42:19 +00:00
2026-10-07 22:10:23 +00:00
2026-10-08 20:11:43 +00:00
2026-10-09 03:42:19 +00:00
2026-10-08 20:11:43 +00:00
2026-10-06 17:26:19 +00:00
2026-10-05 23:52:06 +00:00
2026-10-08 16:19:09 +00:00
2026-10-06 23:44:17 +00:00
2026-10-02 22:20:55 +00:00
2026-10-07 22:11:14 +00:00
2026-09-30 18:49:29 +00:00
2026-10-08 21:18:24 +00:00
2026-10-01 22:32:29 +00:00
2026-09-29 13:58:09 +00:00
2026-09-29 03:32:19 +00:00
2026-10-09 02:50:59 +00:00
2026-10-09 02:50:59 +00:00
2026-10-08 19:15:17 +00:00
2026-10-07 16:46:43 +00:00
2026-10-08 20:11:43 +00:00
2026-10-08 23:57:36 +00:00
2026-10-08 22:27:00 +00:00
2026-10-08 23:57:36 +00:00
2026-10-09 02:04:35 +00:00
2026-10-06 23:28:55 +00:00
2026-10-08 18:42:58 +00:00
2026-10-08 20:11:43 +00:00
2026-10-08 16:19:09 +00:00
2026-10-08 19:13:52 +00:00
2026-10-08 13:45:19 +00:00
2026-10-08 23:57:36 +00:00
2026-10-06 16:56:39 +00:00
2026-10-08 22:27:00 +00:00
2026-10-07 11:18:05 +00:00
2026-10-01 09:52:54 +00:00
2026-10-07 17:59:22 +00:00
2026-10-01 15:57:03 +00:00
2026-10-08 20:04:38 +00:00
2026-10-08 23:34:16 +00:00
2026-10-08 23:57:36 +00:00
2026-10-01 22:32:29 +00:00
2026-10-08 16:19:09 +00:00
2026-09-29 22:24:09 +00:00
2026-10-08 20:11:43 +00:00
2026-10-08 20:11:43 +00:00
2026-09-28 14:46:32 +00:00
2026-10-08 20:11:43 +00:00
2026-10-07 18:32:50 +00:00
2026-10-02 23:26:27 +00:00
2026-10-06 01:46:33 +00:00
2026-10-07 21:16:25 +00:00
2026-10-08 21:09:30 +00:00
2026-10-08 20:11:43 +00:00
2026-10-06 21:29:35 +00:00
2026-10-08 23:57:36 +00:00
2026-10-09 02:04:35 +00:00
2026-10-01 15:57:03 +00:00
2026-09-29 01:14:41 +00:00
2026-10-07 22:11:14 +00:00
2026-10-07 19:28:14 +00:00
2026-10-07 07:57:14 +00:00
2026-10-07 07:57:14 +00:00
2026-10-07 21:52:20 +00:00
2026-10-08 16:19:09 +00:00
2026-10-08 20:11:43 +00:00
2026-10-09 01:22:30 +00:00
2026-10-02 00:46:14 +00:00
2026-10-08 18:42:58 +00:00
2026-10-07 06:34:22 +00:00
2026-10-08 16:19:09 +00:00
2026-10-09 05:12:54 +00:00
2026-10-01 18:05:05 +00:00
2026-10-08 20:11:43 +00:00
2026-10-01 15:57:03 +00:00
2026-10-08 01:12:16 +00:00
2026-10-07 22:11:14 +00:00
2026-10-01 15:57:03 +00:00
2026-10-07 22:11:14 +00:00
2026-10-09 02:50:59 +00:00
2026-10-08 16:19:09 +00:00
2026-10-02 04:02:14 +00:00