use 'prelude' note 'preamble' for the intro sections for a release
Change-Id: I4c17a329ebc82915963a587042e02db26d699955
This commit is contained in:
		
							
								
								
									
										3
									
								
								releasenotes/notes/4e0bcb6f76571b4f-fix-prelude.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								releasenotes/notes/4e0bcb6f76571b4f-fix-prelude.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
---
 | 
			
		||||
fixes:
 | 
			
		||||
  - Fixed the section used in the report to include the prelude in the output.
 | 
			
		||||
@@ -49,11 +49,11 @@ def format_report(scanner_output, versions_to_include):
 | 
			
		||||
        report.append('=' * len(version))
 | 
			
		||||
        report.append('')
 | 
			
		||||
 | 
			
		||||
        # Add the preambles.
 | 
			
		||||
        # Add the preludes.
 | 
			
		||||
        notefiles = scanner_output[version]
 | 
			
		||||
        for n in notefiles:
 | 
			
		||||
            if 'preamble' in file_contents[n]:
 | 
			
		||||
                report.append(file_contents[n]['preamble'])
 | 
			
		||||
            if 'prelude' in file_contents[n]:
 | 
			
		||||
                report.append(file_contents[n]['prelude'])
 | 
			
		||||
                report.append('')
 | 
			
		||||
 | 
			
		||||
        for section_name, section_title in _SECTION_ORDER:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user