Skip to content

Commit f2d1d7f

Browse files
committed
linter
1 parent 695c5c8 commit f2d1d7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/pytest-markdown-generator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ class PytestMarkdownGenerator {
202202
const currentIndentLevel = line.length - line.trimLeft().length;
203203

204204
// Handle triple-quoted docstrings
205-
if (!inDocstring && (trimmedLine.startsWith('"""') || trimmedLine.startsWith("'''"))) {
206-
const quote = trimmedLine.startsWith('"""') ? '"""' : "'''";
205+
if (!inDocstring && (trimmedLine.startsWith('"""') || trimmedLine.startsWith('\'\'\''))) {
206+
const quote = trimmedLine.startsWith('"""') ? '"""' : '\'\'\'';
207207
inDocstring = true;
208208
docstringLines = [];
209209
docstringIndentLevel = currentIndentLevel;
@@ -226,7 +226,7 @@ class PytestMarkdownGenerator {
226226
}
227227

228228
if (inDocstring) {
229-
const quote = docstringLines.length === 0 && trimmedLine.includes('"""') ? '"""' : "'''";
229+
const quote = docstringLines.length === 0 && trimmedLine.includes('"""') ? '"""' : '\'\'\'';
230230
if (trimmedLine.includes(quote)) {
231231
inDocstring = false;
232232
const docContent = trimmedLine.replace(quote, '').trim();

0 commit comments

Comments
 (0)