View Single Post
Old 09-12-2014, 04:30 PM   #1
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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;
}
I get the following error when I try to create new css files.

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'
When I revert the template and then manually copy-paste my css in, Check Book reports clean.
eschwartz is offline   Reply With Quote