mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add more test cases for trailing spaces.
This commit is contained in:
parent
ac38a614e9
commit
28b273e798
5 changed files with 106 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ module.exports = {
|
|||
const tokenLines = params.lines.slice(token.map[0], token.map[1]);
|
||||
forEachInlineCodeSpan(tokenLines.join("\n"), (code, lineIndex) => {
|
||||
const codeLineCount = code.split(newLineRe).length;
|
||||
for (let i = 0; i < codeLineCount; i++) {
|
||||
for (let i = 0; i < codeLineCount - 1; i++) {
|
||||
codeInlineLineNumbers.push(token.lineNumber + lineIndex + i);
|
||||
}
|
||||
});
|
||||
|
|
@ -67,7 +67,7 @@ module.exports = {
|
|||
lineNumber,
|
||||
"Expected: " + (expected === 0 ? "" : "0 or ") +
|
||||
expected + "; Actual: " + trailingSpaces,
|
||||
null,
|
||||
undefined,
|
||||
[ column, trailingSpaces ],
|
||||
{
|
||||
"editColumn": column,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue