|
|
#1 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Error customizing new css files
Using the following css in Preferences ==> Editor Settings ==> Change templates:
Code:
h1, h2, h3 {
text-align: center;
}
p {
text-indent: 1.5em;
margin: 0;
}
.scenebreak {
text-align: center;
text-indent: 0%;
margin: 1em;
}
Code:
calibre 2.3* [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.8
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && View Manager && Quality Check && Annotations && Diaps Editing Toolbag && Overdrive Link && Goodreads Sync && Kindle Collections && Goodreads
Traceback (most recent call last):
File "C:\Users\seli\git\calibre\src\calibre\gui2\tweak_book\file_list.py", line 761, in accept
File "C:\Users\seli\git\calibre\src\calibre\gui2\tweak_book\templates.py", line 46, in template_for
KeyError: u'\n text-align'
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,659
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to escape the braces like this:
body {{ whatever }} |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
OK, thanks!
And thanks for the fix documenting it. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS validation error | kamanza | Sigil | 3 | 12-17-2012 05:40 PM |
| CSS validation error | kamanza | Conversion | 11 | 12-12-2012 03:21 AM |
| ADE breaks CSS --> CSS Validation: Parse Error / Value Error | dasboeh | ePub | 4 | 12-10-2012 04:25 AM |
| Customizing style001.css | Jacques_N | Writer2ePub | 5 | 09-30-2011 12:38 AM |
| CSS files not being used?? | spaze | Sigil | 12 | 03-03-2011 05:26 PM |