Skip to content

Commit 2f3f627

Browse files
committed
issue #10991 @snippetdoc not support multi lines
1 parent 2800b82 commit 2f3f627

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/commentcnv.l

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,9 +1635,16 @@ static void insertCommentStart(yyscan_t yyscanner)
16351635
//printf("insertCommentStart startCol=%d contentCol=%d mlBrief=%d insertCppCommentMarker=%d\n",
16361636
// yyextra->blockHeadCol,yyextra->insertCommentCol,yyextra->mlBrief,yyextra->insertCppCommentMarker);
16371637
std::string marker;
1638-
if (yyextra->lang==SrcLangExt::Python) // need to insert #
1638+
if (yyextra->lang==SrcLangExt::Python) // need to insert # or space
16391639
{
1640-
marker="# ";
1640+
if (yyextra->pythonDocString) // """! style comment
1641+
{
1642+
marker=" ";
1643+
}
1644+
else
1645+
{
1646+
marker="# ";
1647+
}
16411648
}
16421649
else if (yyextra->lang==SrcLangExt::Fortran) // need to insert !!
16431650
{

0 commit comments

Comments
 (0)