mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-04 01:27:21 +01:00 
			
		
		
		
	Fix for toXml.
This commit is contained in:
		
							parent
							
								
									eaf40ceb71
								
							
						
					
					
						commit
						0c5aaaadde
					
				@ -240,10 +240,14 @@ def toXml(msg, pretty=True, includeTime=True):
 | 
			
		||||
    if includeTime:
 | 
			
		||||
        L.append(' time="%s"' % time.time())
 | 
			
		||||
    L.append('>')
 | 
			
		||||
    if pretty:
 | 
			
		||||
        L.append('\n')
 | 
			
		||||
    for arg in msg.args:
 | 
			
		||||
        if pretty:
 | 
			
		||||
            L.append('\n    ')
 | 
			
		||||
            L.append('    ')
 | 
			
		||||
        L.append('<arg>%s</arg>' % _escape(arg))
 | 
			
		||||
        if pretty:
 | 
			
		||||
            L.append('\n')
 | 
			
		||||
    L.append('</msg>')
 | 
			
		||||
    return ''.join(L)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user