Opened 7 years ago
Closed 7 years ago
#47489 closed defect (bug) (fixed)
Emoji are substituted in preformatted blocks
| Reported by: | jikamens | Owned by: | pento |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2.3 |
| Component: | Emoji | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests needs-testing fixed-major |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.