From owner-svn-ports-all@freebsd.org Thu Aug 17 12:50:59 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A12D0DE06E6; Thu, 17 Aug 2017 12:50:59 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7807F7057A; Thu, 17 Aug 2017 12:50:59 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7HCow1s019804; Thu, 17 Aug 2017 12:50:58 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7HCowA3019802; Thu, 17 Aug 2017 12:50:58 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201708171250.v7HCowA3019802@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Thu, 17 Aug 2017 12:50:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r448092 - in branches/2017Q3/textproc/py-sphinx: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: feld X-SVN-Commit-Paths: in branches/2017Q3/textproc/py-sphinx: . files X-SVN-Commit-Revision: 448092 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2017 12:50:59 -0000 Author: feld Date: Thu Aug 17 12:50:58 2017 New Revision: 448092 URL: https://svnweb.freebsd.org/changeset/ports/448092 Log: MFH: r447275 Backport fix for issue #3212 PR: 221116 Submitted by: pgj Approved by: araujo (maintainer) Obtained from: https://github.com/sphinx-doc/sphinx/issues/3212 Approved by: ports-secteam (with hat) Added: branches/2017Q3/textproc/py-sphinx/files/patch-sphinx_writers_html.py - copied unchanged from r447275, head/textproc/py-sphinx/files/patch-sphinx_writers_html.py Modified: branches/2017Q3/textproc/py-sphinx/Makefile Directory Properties: branches/2017Q3/ (props changed) Modified: branches/2017Q3/textproc/py-sphinx/Makefile ============================================================================== --- branches/2017Q3/textproc/py-sphinx/Makefile Thu Aug 17 12:29:52 2017 (r448091) +++ branches/2017Q3/textproc/py-sphinx/Makefile Thu Aug 17 12:50:58 2017 (r448092) @@ -3,7 +3,7 @@ PORTNAME= sphinx PORTVERSION= 1.4.8 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP Copied: branches/2017Q3/textproc/py-sphinx/files/patch-sphinx_writers_html.py (from r447275, head/textproc/py-sphinx/files/patch-sphinx_writers_html.py) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q3/textproc/py-sphinx/files/patch-sphinx_writers_html.py Thu Aug 17 12:50:58 2017 (r448092, copy of r447275, head/textproc/py-sphinx/files/patch-sphinx_writers_html.py) @@ -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