Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#31030 closed defect (bug) (fixed)

Hyphen isn't texturized if it's the first character

Reported by: pento's profile pento Owned by: pento's profile pento
Milestone: 4.2 Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch 2nd-opinion
Focuses: Cc:

Description

If you create a post with the following content:

- here
- is
- a
- test

Then preview or publish it, the hyphen on the first line isn't texturized, while the rest are. The same behaviour occurs in comments, too.

Attachments (1)

31030.diff (1.6 KB) - added by pento 10 years ago.

Download all attachments as: .zip

Change History (5)

@pento
10 years ago

#1 @pento
10 years ago

  • Keywords has-patch 2nd-opinion added

It turns out that the same problem occurs at the end of the text block, too.

Anyway, here's a patch.

This ticket was mentioned in Slack in #core by pento. View the logs.


10 years ago

#3 @pento
10 years ago

  • Owner set to pento
  • Resolution set to fixed
  • Status changed from new to closed

In 31199:

When a hyphen - or double hyphen -- was at the start or the end of a string, it wasn't texturized correctly.

Fixes #31030

#4 @SergeyBiryukov
10 years ago

  • Milestone changed from Awaiting Review to 4.2
Note: See TracTickets for help on using tickets.