Ticket #3428: trac-mimetype-no-binary-diff.patch
| File trac-mimetype-no-binary-diff.patch, 1.4 KB (added by daniel.m.church@…, 6 years ago) |
|---|
-
versioncontrol/web_ui/changeset.py
old new 221 221 continue 222 222 223 223 # Content changes 224 if old_node.content_type and not old_node.content_type.startswith("text/"): 225 continue 226 if new_node.content_type and not new_node.content_type.startswith("text/"): 227 continue 224 228 default_charset = self.config.get('trac', 'default_charset') 225 229 old_content = old_node.get_content().read() 226 230 if mimeview.is_binary(old_content): … … 286 290 new_node_info = old_node_info = ('','') 287 291 288 292 if old_node: 293 if old_node.content_type and not old_node.content_type.startswith("text/"): 294 continue 289 295 charset = mimeview.get_charset(old_node.content_type) or \ 290 296 default_charset 291 297 old_content = util.to_utf8(old_node.get_content().read(), … … 295 301 continue 296 302 297 303 if new_node: 304 if new_node.content_type and not new_node.content_type.startswith("text/"): 305 continue 298 306 charset = mimeview.get_charset(new_node.content_type) or \ 299 307 default_charset 300 308 new_content = util.to_utf8(new_node.get_content().read(),
