Opened 6 years ago
Closed 6 years ago
#47489 closed defect (bug) (fixed)
Emoji are substituted in preformatted blocks
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.2.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Emoji | Keywords: | has-patch has-unit-tests needs-testing fixed-major |
Focuses: | Cc: |
Description
I have a preformatted block in a posting that is a shell script. There's a line in the shell script which ends in ":)". When I preview the posting those two characters are replaced by a smiley face. Emoji substitution should not happen inside preformatted blocks.
Attachments (1)
Change History (7)
#2
@
6 years ago
- Keywords has-patch has-unit-tests added
- Milestone changed from Awaiting Review to 5.3
#3
@
6 years ago
- Owner set to pento
- Resolution set to fixed
- Status changed from new to closed
In 45569:
Note: See
TracTickets for help on using
tickets.
Thank you for the bug report, @jikamens!
The
convert_smilies()
function is supposed to ignore smilies in<pre>
tags, bug it doesn't work correctly if the tag has attributes on it.47489.diff adds support for this case, along with unit tests.