~ubuntu-branches/ubuntu/trusty/python-docutils/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/move-data-to-usr-share.diff/docutils/writers/odf_odt/__init__.py

  • Committer: Package Import Robot
  • Author(s): Michael Schutte, Jakub Wilk, Michael Schutte, Dmitry Shachnev
  • Date: 2013-08-05 16:47:43 UTC
  • mfrom: (11.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20130805164743-00lyz2imgs85ttwz
Tags: 0.11-1
[ Jakub Wilk ]
* Remove martin f. krafft and Ben Finney from Uploaders at their requests.

[ Michael Schutte ]
* New upstream release 0.11, closes: #712284, #714880.
  - Drop patch math-output-html.diff: Fixed upstream.
  - Drop patch fix-buildhtml-progress.diff: Applied upstream.
  - Drop patch strict-csv-parser.diff: Fixed upstream.
  - Drop patch unknown-url-exc-use-repr.diff: Applied upstream.
  - Update patch move-data-to-usr-share.diff: Default stylesheet paths for
    writers/html4css1 have changed.
  - Refresh the remaining patches.
  - New patch no-local-roman.diff: Use the roman module from python-roman
    instead of the copy shipped with docutils.
  - Update information about upstream version control in debian/copyright.
* Change my e-mail host in Uploaders and debian/copyright to @debian.org.
* New patch rst2odt_prepstyles-elementtree.diff: Port the rst2odt_prepstyles
  utility to ElementTree.  Drop Recommends: python-lxml.  Closes: #714319.
* New patch odt-writer-ascii-filenames.diff: Only use ASCII for filenames of
  images embedded in ODT files, closes: #714317.

[ Dmitry Shachnev ]
* Use dh_python2 instead of deprecated dh_pysupport.
* Add XS-Testsuite header, and replace XS-Python-Version with preferred
  X-Python-Version (closes: #685509).
* Add myself to Uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: __init__.py 7528 2012-10-13 20:52:15Z dkuhlman $
 
1
# $Id: __init__.py 7645 2013-04-08 17:35:15Z dkuhlman $
2
2
# Author: Dave Kuhlman <dkuhlman@rexx.com>
3
3
# Copyright: This module has been placed in the public domain.
4
4
 
2019
2019
        elif self.citation_id is not None:
2020
2020
            el = self.append_p('textbody')
2021
2021
            self.set_current_element(el)
2022
 
            el.text = '['
2023
2022
            if self.settings.create_links:
 
2023
                el0 = SubElement(el, 'text:span')
 
2024
                el0.text = '['
2024
2025
                el1 = self.append_child('text:reference-mark-start', attrib={
2025
2026
                        'text:name': '%s' % (self.citation_id, ),
2026
2027
                        })
 
2028
            else:
 
2029
                el.text = '['
2027
2030
 
2028
2031
    def depart_label(self, node):
2029
2032
        if isinstance(node.parent, docutils.nodes.footnote):
2030
2033
            pass
2031
2034
        elif self.citation_id is not None:
2032
 
            self.current_element.text += ']'
2033
2035
            if self.settings.create_links:
2034
2036
                el = self.append_child('text:reference-mark-end', attrib={
2035
2037
                        'text:name': '%s' % (self.citation_id, ),
2036
2038
                        })
 
2039
                el0 = SubElement(self.current_element, 'text:span')
 
2040
                el0.text = ']'
 
2041
            else:
 
2042
                self.current_element.text += ']'
2037
2043
            self.set_to_parent()
2038
2044
 
2039
2045
    def visit_generated(self, node):