prettify xml stanzas in XML console
This commit is contained in:
		
							parent
							
								
									6a432bbb67
								
							
						
					
					
						commit
						f5bd526129
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1163,7 +1163,8 @@ class XMLConsoleWindow:
 | 
			
		|||
		if end_rect.y <= (visible_rect.y + visible_rect.height):
 | 
			
		||||
			at_the_end = True
 | 
			
		||||
		end_iter = buffer.get_end_iter()
 | 
			
		||||
		buffer.insert_with_tags_by_name(end_iter, stanza + '\n\n', kind)
 | 
			
		||||
		buffer.insert_with_tags_by_name(end_iter, stanza.replace('><', '>\n<') + \
 | 
			
		||||
			'\n\n', kind)
 | 
			
		||||
		if at_the_end:
 | 
			
		||||
			gobject.idle_add(self.scroll_to_end)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue