Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2008-04-07 18:42:15

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Stef – I thinks so too, but what to do? I can’t change nor php version, nor hosting…


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#17 2008-04-07 18:58:36

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,461
Website GitHub

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Hmmm, dunno. Am I right in thinking that the part of classTextile that handles this are the span() / fSpan() functions? If it’s those then there’s not much in terms of PHP code that can go wrong unless preg_callback_replace, list or perhaps preg_match have changed in later versions of PHP.

It looks to my untrained eye that a few elements are parsed by these same functions so, out of curiosity, is it just *strong* elements that are affected or does it exhibit the same behaviour with, say, bold (**)? Or strike-through?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#18 2008-04-07 20:39:20

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

It’s not the PHP version either. I tested on a different server with PHP version 5.2.5 and couldn’t reproduce it there.

Offline

#19 2008-04-10 11:56:11

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Bloke wrote:

Hmmm, dunno. Am I right in thinking that the part of classTextile that handles this are the span() / fSpan() functions? If it’s those then there’s not much in terms of PHP code that can go wrong unless preg_callback_replace, list or perhaps preg_match have changed in later versions of PHP.

It looks to my untrained eye that a few elements are parsed by these same functions so, out of curiosity, is it just *strong* elements that are affected or does it exhibit the same behaviour with, say, bold (**)? Or strike-through?

bold and strike-through don’t work too when word ends at specific symbol..


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

Board footer

Powered by FluxBB