mediawiki-extensions-Visual.../modules
Gabriel Wicke e584e35ecb Improve nested definition list serialization
Basically only prefix all bullets if the serialization output is going to be
in start-of-line context. The test for that is currently inline, but should
perhaps be factored out to a method or state flag instead.

We could alternatively consider to return the start-of-line prefix and let it
be used in _serializeToken in case we end up in start-of-line context.

This patch also fixes a newline issue on input like this:

:d1
::: d3

Both the list and list item handlers now set the startsNewline flag
dynamically depending on the context, so that we don't depend on the
suppression of newlines from list syntax by the singleLineMode any more.

There is still an extra newline inserted between list items in the following
example:

;t1 :d1
;;t2 ::d2

This looks like a bug in the produced DOM and not in the serializer, since the
outer definition list is closed and re-opened between d1 and t2.

Change-Id: I78e3a1ef34cf9159d5a1e86fb64c774ff111e71d
2012-06-21 15:28:43 +02:00
..
jquery Add TransactionProcessor tests, and fix TP to make them pass 2012-04-30 19:06:20 -07:00
parser Improve nested definition list serialization 2012-06-21 15:28:43 +02:00
qunit Updated QUnit 2012-03-09 21:50:24 +00:00
rangy svn:eol-style native 2012-02-10 16:57:02 +00:00
sandbox OMG. We have typing, autocorrect and spellcheck working. (Still no IME and still may break cut/paste) 2012-06-13 21:46:29 -07:00
ve Fixed pressing backspace in a slug, now we just move the cursor to some nearby content 2012-06-21 00:01:32 -07:00