mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Support definition lists with empty definition
Change-Id: I81c39a7e49f2ea7ce32cdd3600caeb5eb9f50d84
This commit is contained in:
parent
1ce2bc605d
commit
a31ccaabe4
|
@ -1338,7 +1338,7 @@ dtdd
|
|||
// Fortunately dtdds cannot be nested, so we can simply set the flag
|
||||
// back to 0 to disable it.
|
||||
& { stops.counters['colon'] = 0; return true;}
|
||||
d:inlineline
|
||||
d:inlineline?
|
||||
&eolf {
|
||||
// Convert trailing space into
|
||||
// XXX: This should be moved to a serializer
|
||||
|
@ -1355,7 +1355,8 @@ dtdd
|
|||
li.bullets = bullets + ";";
|
||||
var li2 = new TagTk( 'listItem' );
|
||||
li2.bullets = bullets + ":";
|
||||
return [ li ].concat( c, [ li2 ], d );
|
||||
|
||||
return [ li ].concat( c, [ li2 ], d || new NlTk() );
|
||||
}
|
||||
// Fall-back case to clear the colon flag
|
||||
/ & { return true; } { stops.counters['colon'] = 0; return null; }
|
||||
|
|
Loading…
Reference in a new issue