Opened 12 years ago
Closed 10 years ago
#21848 closed defect (bug) (fixed)
A single space in the image caption breaks alignment
Reported by: | luffer | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.2 | Priority: | low |
Severity: | trivial | Version: | 3.4.2 |
Component: | Media | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
If you add just a single space in the caption field of an image using the media uploader, it ignores any alignment settings.
The expected behaviour would mean that regardless of what is entered into the caption box, the image alignment should be honoured.
Attachments (2)
Change History (13)
#2
follow-up:
↓ 10
@
11 years ago
- Severity changed from normal to trivial
@luffer thanks for the bug report! I can reproduce, but this is trivial.
Maybe we should be trim()
ing captions on change in the media modal? Are there use cases where folks want untrimmed captions?
#3
@
10 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.2
We should fix this. I made a screencast:
https://wordpress.slack.com/files/wonderboymusic/F03RRDFPY/alignment-lost.mov
#4
@
10 years ago
21848.diff fixes part of this.
This ticket was mentioned in Slack in #core by drew. View the logs.
10 years ago
#7
@
10 years ago
- Keywords has-patch added; needs-patch removed
- Owner set to wonderboymusic
- Status changed from new to reviewing
21848.diff still applies. I could get behind even a partial fix here. @wonderboymusic: can you please commit what you've got so far if you think that's going to work, and either punt the ticket or make a recommendation on fixing what's left?
#9
@
10 years ago
- Keywords dev-feedback added
@wonderboymusic: Following the same procedure in your screencast following [31958] seems to work exactly as before. Should we expect the alignment not to be lost after switching the editor modes?
#10
in reply to:
↑ 2
@
10 years ago
Replying to ericlewis:
@luffer thanks for the bug report! I can reproduce, but this is trivial.
Maybe we should be
trim()
ing captions on change in the media modal? Are there use cases where folks want untrimmed captions?
I think it's probably safe to trim()
. See 21848.2.diff.
Related: #18134