File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments