put rows inside <Data> when writing
This commit is contained in:
		
							parent
							
								
									7e318b2001
								
							
						
					
					
						commit
						26ca1cd012
					
				@ -84,8 +84,9 @@ def write_devices(devices: Sequence[Device], el_map: ElementTree.Element) -> Non
 | 
			
		||||
            el_bin.set('BinQuality', 'Pass' if passed else 'Fail')
 | 
			
		||||
            el_bin.set('BinCount', str(bin_counts[bin_code]))
 | 
			
		||||
 | 
			
		||||
        el_data = ElementTree.SubElement(el_device, 'Data')
 | 
			
		||||
        for row_text in row_texts:
 | 
			
		||||
            el_row = ElementTree.SubElement(el_device, 'Row')
 | 
			
		||||
            el_row = ElementTree.SubElement(el_data, 'Row')
 | 
			
		||||
            el_row.text = f'<![CDATA[{row_text}]]>'
 | 
			
		||||
 | 
			
		||||
        # Device attribs
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user