mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Removed newline normalization between paragraphs.
Change-Id: Ifd55db73c8fe2b3e952066a75cba2f8e13c58430
This commit is contained in:
parent
8fd901850c
commit
2271f19ecf
|
@ -373,10 +373,7 @@ WSP._serializeToken = function ( state, token ) {
|
||||||
//
|
//
|
||||||
// SSS FIXME: Other tags that have similar requirements within lists or
|
// SSS FIXME: Other tags that have similar requirements within lists or
|
||||||
// other contexts?
|
// other contexts?
|
||||||
|
if (state.precedingNewlineCount < 2) state.precedingNewlineCount = 2;
|
||||||
// Normalize white space at 2 newlines between paragraphs
|
|
||||||
// So, ...\n*</p><p>... will always introduce 2 newlines
|
|
||||||
state.precedingNewlineCount = 2;
|
|
||||||
}
|
}
|
||||||
} else if (state.precedingNewlineCount < 1) {
|
} else if (state.precedingNewlineCount < 1) {
|
||||||
state.precedingNewlineCount = 1;
|
state.precedingNewlineCount = 1;
|
||||||
|
|
Loading…
Reference in a new issue