Re: Creole

new topic     » goto parent     » topic index » view thread      » older message » newer message
andi49 said...

Sure, but i'am not sure if this simple change works everywhere.

html_gen.e

constant kHTML = { 
	{ "&", "&" }, 
	{ "<", "&lt;" }, 
	{ ">", "&gt;" }, 
	{ {196}, "&Auml;" }, --Ae 
	{ {228}, "&auml;" }, --ae 
	{ {220}, "&Uuml;" }, --Ue 
	{ {252}, "&uuml;" }, --ue 
	{ {214}, "&Ouml;" }, --Oe 
	{ {246}, "&ouml;" }, --oe 
	{ {223}, "&szlig;" }, -- ss 
	$ 
} 

At least it works for me.

Yes, it seems very encoding specific. A better approach might be to find things that fit the pattern of ampersand, letters, semi-colon, and leave those alone.

I asked you for the patch partly because it would at least pinpoint the place to change this. I haven't looked at the creole repository (see Derek, I didn't just say creole!) in a long time, and this saves me (or anyone else looking at the code) the time of figuring out where this sort of thing might happen. smile

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu