View Single Post
Old 12-15-2014, 12:31 AM   #1
Under the Covers
Night Reader
Under the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura aboutUnder the Covers has a spectacular aura about
 
Under the Covers's Avatar
 
Posts: 127
Karma: 4314
Join Date: Oct 2010
Location: Rocky Mountains (US)
Device: Sony PRS-650
Odd <p></p> placement & keyboard shortcut error

(1) When I use the mouse in the editor to select the <p></p> tags from the toolbar above the current opened file of a book (any book), they're placed on either side of my cursor, which is what I want. However, when I use the Ctrl-7 keyboard shortcut, the opening tag is placed not at the cursor but way up at the end of the prior <body> tag with the closing tag just prior to the </body> tag below -- I couldn't figure out what happened at first, and it took me a while to locate them -- my cursor being on a blank line between existing paragraphs. I'd really prefer to use the keyboard method, but this really threw me. Is this difference intentional? (I'm not a coder; I'm just trying to fix books to be readable on my reader, so please be gentle.)

(2) When I try to change the Ctrl-7 keyboard shortcut for those tags (or any shortcut in the editor, for that matter), I get an error message, no matter which (unused) keystroke combo I use:

Quote:
calibre, version 2.12.0
ERROR: Unhandled exception: <b>KeyError</b>:u'set_to_default'

calibre 2.12 [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: Webscription && Fantastic Fiction && Manage Sony x50 Reader Book List && Open With && Manage Series && Reading List && Read MP3 AudioBook metadata && Quality Check && Search The Internet && Count Pages && User Category && Walk Search History && Quick Preferences && Search From Clipboard && Hyphenate This! && Annotations && View Manager && Modify ePub && FictionDB && Find Duplicates && Extract ISBN && Generate Cover && DOC Input && EpubMerge && EpubSplit && Resize Cover
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\preferences.py", line 683, in accept
File "site-packages\calibre\gui2\keyboard.py", line 646, in commit
File "site-packages\calibre\gui2\keyboard.py", line 274, in commit
KeyError: u'set_to_default'

Last edited by Under the Covers; 12-15-2014 at 04:33 PM.
Under the Covers is offline   Reply With Quote