r95909 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95908‎ | r95909 | r95910 >
Date:21:02, 31 August 2011
Author:brion
Status:deferred
Tags:
Comment:
ParserPlayground: quick fix for round-tripping list item lines
Modified paths:
  • /trunk/extensions/ParserPlayground/modules/ext.parserPlayground.serializer.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserPlayground/modules/ext.parserPlayground.serializer.js
@@ -119,6 +119,10 @@
120120 // @fixme validate that text doesn't contain '-->'
121121 src = '<!--' + tree.text + '-->';
122122 break;
 123+ case 'li':
 124+ src = tree.listStyle.join('');
 125+ src += subParseArray(tree.content) + '\n';
 126+ break;
123127 default:
124128 callback(null, 'Unrecognized parse tree node');
125129 return;

Status & tagging log