mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 20:24:01 +02:00
Fix a linter bug in a semi-colon case (#1928)
This commit is contained in:
committed by
Ian Storm Taylor
parent
2652680850
commit
0322f7a1b8
@@ -149,6 +149,7 @@
|
||||
{ "blankLine": "any", "prev": "multiline-expression", "next": "return" },
|
||||
{ "blankLine": "always", "prev": "*", "next": "multiline-expression" },
|
||||
{ "blankLine": "always", "prev": "*", "next": "multiline-expression" },
|
||||
{ "blankLine": "any", "prev": "empty", "next": "multiline-expression" },
|
||||
{ "blankLine": "always", "prev": "multiline-block-like", "next": "*" },
|
||||
{ "blankLine": "any", "prev": "multiline-block-like", "next": "return" },
|
||||
{ "blankLine": "always", "prev": "*", "next": "multiline-block-like" },
|
||||
|
@@ -59,7 +59,6 @@ function cloneFragment(event, value, fragment = value.fragment) {
|
||||
|
||||
// Remove any zero-width space spans from the cloned DOM so that they don't
|
||||
// show up elsewhere when pasted.
|
||||
// eslint-disable-next-line padding-line-between-statements
|
||||
;[].slice.call(contents.querySelectorAll(ZERO_WIDTH_SELECTOR)).forEach(zw => {
|
||||
const isNewline = zw.getAttribute(ZERO_WIDTH_ATTRIBUTE) === 'n'
|
||||
zw.textContent = isNewline ? '\n' : ''
|
||||
|
Reference in New Issue
Block a user