FreeBSD Bugzilla – Attachment 184891 Details for
Bug 221116
textproc/py-sphinx: Backport fix for issue #3212 (HTML document build failure)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Actual change to the ports tree
py-sphinx.fix.3212.diff (text/plain), 1.73 KB, created by
Gabor Pali
on 2017-08-01 10:12:15 UTC
(
hide
)
Description:
Actual change to the ports tree
Filename:
MIME Type:
Creator:
Gabor Pali
Created:
2017-08-01 10:12:15 UTC
Size:
1.73 KB
patch
obsolete
>Index: textproc/py-sphinx/files/patch-sphinx_writers_html.py >=================================================================== >--- textproc/py-sphinx/files/patch-sphinx_writers_html.py (nonexistent) >+++ textproc/py-sphinx/files/patch-sphinx_writers_html.py (working copy) >@@ -0,0 +1,27 @@ >+--- sphinx/writers/html.py.orig 2016-10-01 15:14:37 UTC >++++ sphinx/writers/html.py >+@@ -16,6 +16,7 @@ import copy >+ import warnings >+ >+ from six import string_types >++import docutils >+ from docutils import nodes >+ from docutils.writers.html4css1 import Writer, HTMLTranslator as BaseTranslator >+ >+@@ -497,6 +498,16 @@ class HTMLTranslator(BaseTranslator): >+ if 'height' not in node: >+ node['height'] = str(size[1]) >+ BaseTranslator.visit_image(self, node) >++ >++ # overwritten >++ def depart_image(self, node): >++ if docutils.__version__ >= "0.13": >++ # since docutils-0.13, HTMLWriter does not push context data on visit_image() >++ if node['uri'].lower().endswith(('svg', 'svgz')): >++ self.body.append(self.context.pop()) >++ else: >++ # docutils-0.12 or below, HTML Writer always push context data on visit_image() >++ self.body.append(self.context.pop()) >+ >+ def visit_toctree(self, node): >+ # this only happens when formatting a toc from env.tocs -- in this > >Property changes on: textproc/py-sphinx/files/patch-sphinx_writers_html.py >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221116
:
184865
|
184889
|
184891
|
184892