Author: robindinse
Description:
VisualEdtior often produces garbage like this:
- non-bold''' bold'''.
- italic'' ''whitespace.
Version: unspecified
Severity: enhancement
Author: robindinse
Description:
VisualEdtior often produces garbage like this:
Version: unspecified
Severity: enhancement
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Trim leading and trailing whitespace from annotations | VisualEditor/VisualEditor | master | +90 -10 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T39835 A link can span whitespace but won't be displayed, so cannot be edited or noticed | |||
Resolved | Catrope | T54037 Strip annotations (e.g. bold, italics, link) from terminal whitespace |
On saving, we should remove newly-added annotations from terminal whitespace (so that:
<b data-parsoid="…"> <i>Foo bar</b> </i>
turns into
<b data-parsoid="…"> <i>Foo bar</i></b>
This would fix bug 37835, too.
Change 201583 had a related patch set uploaded (by Catrope):
Trim leading and trailing whitespace from annotations
This should fall under Parsoid's HTML sanitisation run, along with empty headings, as this problem is not unique to VE.
Change 201583 merged by jenkins-bot:
Trim leading and trailing whitespace from annotations