With word wrap enabled, spaces inside a tag are not rendered #1362

Closed
opened 2013-03-14 22:11:34 +01:00 by marijnh · 12 comments
marijnh commented 2013-03-14 22:11:34 +01:00 (Migrated from gitlab.com)
  1. Open http://codemirror.net/demo/indentwrap.html
  2. Set cursor at the end of line 7, just before the close bracket >
  3. Insert spaces to cause wrapping
  4. Continue inserting spaces

Actual: Wrapping occurs, but spaces are no longer inserted. Adding space characters works fine.
Expected: Wrapping should occur and new space characters should render.

1. Open http://codemirror.net/demo/indentwrap.html 2. Set cursor at the end of line 7, just before the close bracket `>` 3. Insert spaces to cause wrapping 4. Continue inserting spaces Actual: Wrapping occurs, but spaces are no longer inserted. Adding space characters works fine. Expected: Wrapping should occur and new space characters should render.
marijnh commented 2013-03-14 22:12:32 +01:00 (Migrated from gitlab.com)

mentioned in merge request !10255

mentioned in merge request !10255
marijnh commented 2013-03-15 14:46:26 +01:00 (Migrated from gitlab.com)

It should be noted this behaves correctly in Firefox currently (but not Chrome).

It should be noted this behaves correctly in Firefox currently (but not Chrome).
marijnh commented 2013-03-15 15:58:28 +01:00 (Migrated from gitlab.com)

Webkit apparently decides that even in pre-wrap whitespace mode, a block of spaces that is at a wrapping point takes up no space. I'll see about workaround hacks.

Webkit apparently decides that even in `pre-wrap` whitespace mode, a block of spaces that is at a wrapping point takes up no space. I'll see about workaround hacks.
marijnh commented 2013-03-15 17:05:49 +01:00 (Migrated from gitlab.com)

mentioned in issue #1361

mentioned in issue #1361
marijnh (Migrated from gitlab.com) closed this issue 2013-03-15 17:06:42 +01:00
marijnh commented 2013-03-15 17:07:15 +01:00 (Migrated from gitlab.com)

I've pushed a moderately scary hack which seems to solve this. Please test.

I've pushed a moderately scary hack which seems to solve this. Please test.
marijnh commented 2013-03-16 00:22:51 +01:00 (Migrated from gitlab.com)

mentioned in issue #3147

mentioned in issue #3147
marijnh commented 2013-03-20 07:35:23 +01:00 (Migrated from gitlab.com)

mentioned in issue #1380

mentioned in issue #1380
marijnh commented 2013-03-28 22:58:32 +01:00 (Migrated from gitlab.com)

mentioned in issue #529

mentioned in issue #529
marijnh commented 2018-08-28 23:06:53 +02:00 (Migrated from gitlab.com)

mentioned in merge request !12707

mentioned in merge request !12707
marijnh commented 2021-08-29 21:47:09 +02:00 (Migrated from gitlab.com)

mentioned in issue #2915

mentioned in issue #2915
marijnh commented 2021-08-29 21:53:09 +02:00 (Migrated from gitlab.com)

mentioned in issue #2957

mentioned in issue #2957
marijnh commented 2023-10-08 15:27:05 +02:00 (Migrated from gitlab.com)

mentioned in issue #7069

mentioned in issue #7069
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/codemirror5#1362
No description provided.