Page MenuHomePhabricator

In visual editing mode, punctuation should not be wrapped to a new line by itself
Closed, DuplicatePublicBUG REPORT

Description

Steps to Reproduce:
Go into visual editing mode. Find a displayed line which is wrapped with a punctuation mark (period, comma, etc.) at the end of the line _and_ is the longest line in the display, so that the punctuation mark is the right-most displayed character (sticks out). Narrow the window very slowly and the punctuation mark wraps to the next line all by itself.

Actual Results

Punctuation mark wraps to new line all by itself.

Expected Results:

Punctuation mark is "attached" to the word it follows so they always wrap to a new line together. Sort of like a non-breaking-space.

Note:

This problem does not happen in normal display mode, just in visual editing mode.

I discovered this because I would see lines missing punctuation, but then realize that it had been wrapped to the next line.

Event Timeline

Aklapper changed the task status from Open to Stalled.Feb 18 2021, 9:18 AM

Hi @Dough34, thanks for taking the time to report this! Cannot reproduce. Which exact VisualEditor version is used on your installation?
Which browser and browser version is used, on which operating system? Does this also happen with another browser? Could you provide a screenshot?

I tried this on https://www.mediawiki.org/w/index.php?title=User:AKlapper_(WMF)/Sandbox&veaction=edit with no success in Firefox 85 on Linux:

Screenshot from 2021-02-18 10-14-08.png (1×1 px, 221 KB)

I don't know how to tell the version of VisualEditor, where would I look for that? I'm on a MacBook Pro Retina 13" Late 2013 running MacOS 11.2.1 and using Firefox 85.0.2 as my browser.

I'm unable to reproduce it in a sandbox, but find it easy to reproduce on regular webpages, just choose one with substantial text.

Here's a couple examples from:

Montenegro–NATO relations

https://en.wikipedia.org/wiki/Montenegro%E2%80%93NATO_relations?veaction=edit&section=1

Screen Shot 2021-02-18 at 3.59.20 PM.png
Screen Shot 2021-02-18 at 3.56.16 PM.png

Screen Shot 2021-02-18 at 3.59.20 PM.png (254×1 px, 111 KB)

Screen Shot 2021-02-18 at 3.56.16 PM.png (466×1 px, 216 KB)

This does not happen when not in the visual editor.