mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-31 02:27:01 -04:00 
			
		
		
		
	Fix #763105 (HTML Input to RTF Output - Latin-1 characters)
This commit is contained in:
		
						commit
						36ba0bd52a
					
				| @ -79,8 +79,7 @@ def txt2rtf(text): | |||||||
|         elif val <= 127: |         elif val <= 127: | ||||||
|             buf.write(x) |             buf.write(x) | ||||||
|         else: |         else: | ||||||
|             repl = ascii_text(x) |             c = r'\u{0:d}?'.format(val) | ||||||
|             c = r'\uc{2}\u{0:d}{1}'.format(val, repl, len(repl)) |  | ||||||
|             buf.write(c) |             buf.write(c) | ||||||
|     return buf.getvalue() |     return buf.getvalue() | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user