mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #6655: image URLs containing data: causes gettext builder crashed
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -16,6 +16,8 @@ Features added
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #6655: image URLs containing ``data:`` causes gettext builder crashed
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
||||
|
@@ -130,7 +130,7 @@ class DataURIExtractor(BaseImageConverter):
|
||||
elif self.app.builder.supported_data_uri_images is True:
|
||||
return False
|
||||
else:
|
||||
return 'data:' in node['uri']
|
||||
return node['uri'].startswith('data:')
|
||||
|
||||
def handle(self, node):
|
||||
# type: (nodes.image) -> None
|
||||
|
Reference in New Issue
Block a user