Modify

Opened 6 years ago

Last modified 6 years ago

#4405 new defect

underscore in front of a goodie escapes symbols from beeing converted.

Reported by: xyanipheia Owned by: cboos
Priority: normal Component: WikiGoodiesPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

After upgrading my TRAC from 0.10.4 to 0.11.2.1 and the plugins to the latest versions I encountered the problem, that symbols immediately after other characters (especially I use the underscore _) are not anymore rendered as expected. It would be great if there would be a solution to enable symbols that are not preceded by a whitespace character.
My configuration:
Apache 2.2.11, Python 2.5.4, TRAC 0.11.2.1, and a few other plugins

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by cboos

Do you have a few actual examples?

comment:2 Changed 6 years ago by xyanipheia

yes, here are some strings that worked on 0.10.4 but do not work on 0.11.2.1:

  • _{*} hello{o} {OK}_{X}
  • {*} {o} {X} are not rendered
  • only {OK} is rendered on both configs.

If a + or - or , is used between two smiley-expressions it works, both are rendered correctly, but _ or characters between smiley-expressions prevent the second one from being rendered.

In fact I use the plugin in a modified version for my page, where I added some more expressions for images of key-stroke-icons like "SHIFT" or "CTRL" or "ArrowUP" to smileys.py. There it looks sometimes better to append such images immediately after some characters.

If all three smiley of {OK}_{OK}xxx{OK} would be rendered it would be great. In general, forcing a smiley to be rendered independent of the preceding character would be great. But of course not inside macros or special {{{ ... }}} sections, this can be used to prevent smileys to be rendered.

Only a single ! should escape a smiley from being rendered, double !! would be expected to be rendered as a single ! with immediately preceding smiley.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.