Accept wikilink parameters with dangling equal ('|arg=|')

Change-Id: Ib4f6d186da2a74522b17c377dac5c9a7de7e5861
This commit is contained in:
Gabriel Wicke 2012-04-27 11:35:00 +02:00
parent 1d70e7b81c
commit 30a83d7fd7

View file

@ -1030,7 +1030,7 @@ link_text
h:inline h:inline
// 'equal' syntaxFlag is set for links in template parameters. Consume the // 'equal' syntaxFlag is set for links in template parameters. Consume the
// '=' here. // '=' here.
hs:( '=' inline)? hs:( '=' inline?)?
{ {
//console.warn('link_text' + pp(h) + pp(hs)); //console.warn('link_text' + pp(h) + pp(hs));
stops.dec('linkdesc'); stops.dec('linkdesc');
@ -1976,7 +1976,6 @@ spaceless_preprocessor_text
wikilink_preprocessor_text wikilink_preprocessor_text
= r:( t:[^<~[{\n\r\t|!\]}{ &=]+ { return t.join(''); } = r:( t:[^<~[{\n\r\t|!\]}{ &=]+ { return t.join(''); }
/// urlencoded_char
/ !inline_breaks ( directive / !"]]" text_char ) / !inline_breaks ( directive / !"]]" text_char )
)+ { )+ {
return flatten_stringlist ( r ); return flatten_stringlist ( r );