Quote:
Originally Posted by bkilian
I'm getting an error on a lot of my files:
Generating in-line TOC...
Applying case-transforming CSS...
Traceback (most recent call last):
File "from_any.py", line 70, in <module>
File "from_any.py", line 66, in main
File "from_any.py", line 56, in any2mobi
File "calibre\ebooks\mobi\writer.pyo", line 574, in oeb2mobi
File "calibre\ebooks\oeb\transforms\manglecase.pyo" , line 36, in transform
File "calibre\ebooks\oeb\transforms\manglecase.pyo" , line 46, in mangle_spine
File "calibre\ebooks\oeb\stylizer.pyo", line 163, in __init__
File "calibre\ebooks\oeb\stylizer.pyo", line 280, in _apply_style_attr
File "cssutils\css\cssstyledeclaration.pyo", line 128, in __init__
File "cssutils\css\cssstyledeclaration.pyo", line 168, in __setattr__
File "cssutils\css\cssstyledeclaration.pyo", line 325, in _setCssText
File "cssutils\util.pyo", line 371, in _parse
File "cssutils\css\cssstyledeclaration.pyo", line 316, in unexpected
File "cssutils\errorhandler.pyo", line 89, in __handle
xml.dom.SyntaxErr: CSSStyleDeclaration: Unexpected token, ignoring upto u'; marg
in: 0pt;'. [1:1: ;]
If you're interested, I'll create a bug and add a file that does it.
|
I found it, I think, it appears to be from a file called "calibre_title_page.html" which appears to be generated by Calibre? It doesn't seem to like the lack of space in the "padding:0pt;" bit. That's the only instance of "margin: 0pt" in the file I was looking at.
Code:
C:\Users\bkilian\AppData\Local\Temp\calibre_0.4.130_hzidig_any2mobi\oeb\content>
more calibre_title_page.html
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Cover</title>
<style type="text/css" title="override_css">
@page {padding: 0pt; margin:0pt}
body { text-align: center; padding:0pt; margin: 0pt; }
div { margin: 0pt; padding: 0pt; }
</style>
</head>
<body>
<div>
<img src="resources/_cover_.jpg" alt="cover" style="height: 100%" />
</div>
</body>
</html>