@@ -951,22 +951,22 @@ sub detect_comment_block{
951
951
if ( $COMMENT !~ m / ^\s *$ / ){
952
952
my @comment_lines = split /\n/, $COMMENT ;
953
953
foreach my $comment_line (@comment_lines ) {
954
- if ( $RETURN_TYPE ne ' ' && $comment_line =~ m / ^\s *\.\. \w / ){
955
- # return type must be added before any other paragraph-level markup
956
- write_output(" CM5" , " :rtype: $RETURN_TYPE \n\n " );
957
- $RETURN_TYPE = ' ' ;
958
- }
954
+ # if ( $RETURN_TYPE ne '' && $comment_line =~ m/^\s*\.\. \w/ ){
955
+ # # return type must be added before any other paragraph-level markup
956
+ # write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
957
+ # $RETURN_TYPE = '';
958
+ # }
959
959
write_output(" CM2" , " $comment_line \n " );
960
- if ( $RETURN_TYPE ne ' ' && $comment_line =~ m / :return:/ ){
961
- # return type must be added before any other paragraph-level markup
962
- write_output(" CM5" , " :rtype: $RETURN_TYPE \n\n " );
963
- $RETURN_TYPE = ' ' ;
964
- }
960
+ # if ( $RETURN_TYPE ne '' && $comment_line =~ m/:return:/ ){
961
+ # # return type must be added before any other paragraph-level markup
962
+ # write_output("CM5", ":rtype: $RETURN_TYPE\n\n");
963
+ # $RETURN_TYPE = '';
964
+ # }
965
965
}
966
966
}
967
- if ( $RETURN_TYPE ne ' ' ){
968
- write_output(" CM3" , " \n :rtype: $RETURN_TYPE \n " );
969
- }
967
+ # if ( $RETURN_TYPE ne '' ){
968
+ # write_output("CM3", "\n:rtype: $RETURN_TYPE\n");
969
+ # }
970
970
write_output(" CM4" , " %End \n " );
971
971
}
972
972
$COMMENT = ' ' ;
0 commit comments