~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/oeb/stylizer.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-05-14 18:17:50 UTC
  • mfrom: (1.5.10)
  • Revision ID: package-import@ubuntu.com-20140514181750-xyrxqa47dbw0qfhu
Tags: 1.36.0+dfsg-1
* New upstream release:
  - Fixes editing of metadata (Closes: #741638)

Show diffs side-by-side

added added

removed removed

Lines of Context:
315
315
                    self.style(elem)._update_cssdict(cssdict)
316
316
        for elem in xpath(tree, '//h:*[@style]'):
317
317
            self.style(elem)._apply_style_attr(url_replacer=item.abshref)
318
 
        num_pat = re.compile(r'\d+$')
 
318
        num_pat = re.compile(r'[0-9.]+$')
319
319
        for elem in xpath(tree, '//h:img[@width or @height]'):
320
320
            style = self.style(elem)
321
321
            # Check if either height or width is not default