Skip to content

Commit

Permalink
[sipify] force line return before code block
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 26, 2021
1 parent ee03ad5 commit bd88d6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/sipify.pl
Expand Up @@ -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 ''){
Expand Down

0 comments on commit bd88d6a

Please sign in to comment.