~ubuntu-branches/debian/experimental/calibre/experimental

« back to all changes in this revision

Viewing changes to src/odf/odf2xhtml.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-02-10 07:35:00 UTC
  • mfrom: (1.3.30)
  • Revision ID: package-import@ubuntu.com-20120210073500-9hx5hpketc9hb59i
Tags: 0.8.38+dfsg-1
* New upstream release.
* debian/control: Bump Standards-Version to 3.9.2. No changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1158
1158
        """ Anchors start """
1159
1159
        self.writedata()
1160
1160
        href = attrs[(XLINKNS,"href")].split("|")[0]
1161
 
        if href[0] == "#":
 
1161
        if href[:1] == "#": # Changed by Kovid
1162
1162
            href = "#" + self.get_anchor(href[1:])
1163
1163
        self.opentag('a', {'href':href})
1164
1164
        self.purgedata()