Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#31030 closed defect (bug) (fixed)

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

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

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 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @pento
12 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.


12 years ago

#3 @pento
12 years ago

  • Owner set to pento
  • Resolution → fixed
  • Status new → 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
12 years ago

  • Milestone Awaiting Review → 4.2
Note: See TracTickets for help on using tickets.