mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	[sipify] force line return before code block
This commit is contained in:
		
							parent
							
								
									ee03ad5991
								
							
						
					
					
						commit
						bd88d6ac38
					
				@ -191,7 +191,7 @@ 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;
 | 
			
		||||
@ -199,6 +199,7 @@ sub processDoxygenLine {
 | 
			
		||||
    }
 | 
			
		||||
    if ($COMMENT_CODE_SNIPPET != 0){
 | 
			
		||||
        if ( $COMMENT_CODE_SNIPPET == CODE_SNIPPET_CPP ){
 | 
			
		||||
            # cpp code is stripped out
 | 
			
		||||
            return "";
 | 
			
		||||
        } else {
 | 
			
		||||
            if ( $line ne ''){
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user