mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Fix applyFix handling of multiple line endings; MD022 handling of multiple lines.
This commit is contained in:
parent
52939a6d7e
commit
677255a484
5 changed files with 46 additions and 27 deletions
|
@ -457,7 +457,7 @@ function applyFix(line, fixInfo, lineEnding) {
|
|||
return (deleteCount === -1) ?
|
||||
null :
|
||||
line.slice(0, editIndex) +
|
||||
insertText.replace("\n", lineEnding) +
|
||||
insertText.replace(/\n/g, lineEnding) +
|
||||
line.slice(editIndex + deleteCount);
|
||||
}
|
||||
module.exports.applyFix = applyFix;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue