Skip to content
Permalink
Browse files
[sipify] force line return before code block
  • Loading branch information
3nids committed May 26, 2021
1 parent ee03ad5 commit bd88d6ac38c08eb5851d8781aef729f7a270368a
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/sipify.pl
@@ -191,14 +191,15 @@ sub processDoxygenLine {
$COMMENT_CODE_SNIPPET = CODE_SNIPPET_CPP if ($codelang =~ m/cpp/ );
$codelang =~ s/py/python/;
return "\n" if ( $COMMENT_CODE_SNIPPET == CODE_SNIPPET_CPP );
return ".. code-block::$codelang\n\n";
return "\n.. code-block::$codelang\n\n";
}
if ( $line =~ m/\\endcode/ ) {
$COMMENT_CODE_SNIPPET = 0;
return "\n";
}
if ($COMMENT_CODE_SNIPPET != 0){
if ( $COMMENT_CODE_SNIPPET == CODE_SNIPPET_CPP ){
# cpp code is stripped out
return "";
} else {
if ( $line ne ''){

0 comments on commit bd88d6a

Please sign in to comment.