Re: [phpwiki-checkins] CVS: phpwiki/lib InlineParser.php, 1.104, 1.105

Marc-Etienne Vargenau <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Organization Alcatel-Lucent (CTO/RDEI/SRA)
Message-ID <[email protected]>
Reini Urban a écrit :
> Marc-Etienne Vargenau schrieb:
>> Update of /cvsroot/phpwiki/phpwiki/lib
>> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8075
>>
>> Modified Files:
>> 	InlineParser.php 
>> Log Message:
>> Implemented Wikicreole syntax for preformatted text
> 
> We should add all Wikicreole syntax extensions behind 
> ENABLE_MARKUP_WIKICREOLE and make it default = true.

Hello Reini,

How should this be done in such a code:

class Markup_linebreak extends SimpleMarkup
{
     var $_match_regexp = "(?: (?<! %) %%% (?! %) | \\\\\\\\ | <(?:br|BR)> )";

     function markup ($match) {
         return HTML::br();
     }
}

i.e. to differentiate between
"(?: (?<! %) %%% (?! %) | \\\\\\\\ | <(?:br|BR)> )"
and
"(?: (?<! %) %%% (?! %) | <(?:br|BR)> )"

Best regards,

Marc-Etienne



-- 
==================================================================    ------
| Marc-Etienne Vargenau                                          |   /      \
| Alcatel-Lucent France, Route de Villejust, 91620 NOZAY, FRANCE |  /  /|'`  \
| +33 (0)1 30 77 28 33, [email protected]  | |  /'| '   |
==================================================================  \   |/   /
| L'essence des Mathématiques est dans leur liberté.             |   \      /
|                                Georges Cantor                  |    ------
==================================================================

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.