Editor misformatting certain strings

Found a bug? Tell us!!
Post Reply
chippyash
Posts: 2
Joined: Thu Oct 21, 2010 4:23 am

Editor misformatting certain strings

Post by chippyash »

If I enter something like

/**
* This is a comment
*/

and format with a surrounding <pre></pre> tag, when I preview the page I get

/
This is a comment
/

The asterix characters go missing. I'm loath to send this entry live if it's not looking right in the preview

What can I do to get round this. I am trying to present blocks of program code.

TIA
onli
Regular
Posts: 3044
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Editor misformatting certain strings

Post by onli »

Is serendipity_markup or another markup-plugin active? If it is active, try to deactivate it wth the serendipity_event_entryproperties-plugin for that entry.
chippyash
Posts: 2
Joined: Thu Oct 21, 2010 4:23 am

Re: Editor misformatting certain strings

Post by chippyash »

Thanks onli, that sorted it, Pity we have to switch standard functionality off just to do the simple things though. :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Editor misformatting certain strings

Post by garvinhicking »

chippyash wrote:Thanks onli, that sorted it, Pity we have to switch standard functionality off just to do the simple things though. :(
In fact, the markup plugin is there to actually simply-format things for non-savvy users. Posting sourcecode is a bit more advanced and there markup formations always screw up things. So actually the savvy user needs to disable this - sadly we can't anticipate what the user will be using, thus we figured more novice users would need that plugin than not.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply