|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 729
Karma: 4321462
Join Date: Aug 2010
Location: Sweden
Device: Iriver Story
|
Specify indent in css, not with  
Isn't it possible to code the first line indent in the css and skip the   code? |
|
|
|
|
|
#2 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,488
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre does not insert nbsp if there's nbsp in the output then it was there in the input
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,308
Karma: 11288999
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
|
You can verify this for yourself by putting a directory in the debug area of conversion and after the conversion is complete you can easily review the resultant html. This directory will show you the code at each point in the conversion process.
__________________
-- Good Reading, Walt -- 20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space. |
|
|
|
|
|
#4 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 729
Karma: 4321462
Join Date: Aug 2010
Location: Sweden
Device: Iriver Story
|
Thanks, Dwanthny, I forgot I always save the debug information now. It can be so helpful.
|
|
|
|
|
|
#5 | |
|
Member
![]() Posts: 16
Karma: 10
Join Date: Aug 2010
Location: Canada
Device: Sony
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 729
Karma: 4321462
Join Date: Aug 2010
Location: Sweden
Device: Iriver Story
|
Quote:
|
|
|
|
|
|
|
#7 | ||
|
Member
![]() Posts: 16
Karma: 10
Join Date: Aug 2010
Location: Canada
Device: Sony
|
Quote:
Quote:
|
||
|
|
|
|
|
#8 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Some logic just got hooked into the preprocess option to take care of multiple nbsp's being used as indents, converting them to css styles. The code was just checked in, so it will be in the next release.
I don't believe odt files go through that code path during conversion, but if you take the html in the debug output, add that back as a new format, then re-convert with preprocess enabled in structure detection, you should be in good shape. Right now it just takes any number(2 or more) of nbsps and normalizes them to 3% indent. I've been debating changing the indent based on the actual number of nbsps, but a lot of books I've seen use entirely too many anyway. Last edited by ldolse; 09-13-2010 at 09:50 PM. |
|
|
|
![]() |
| Tags |
|  , first line, indent |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| txt to Epub - nbsp nbsp | cybmole | Calibre | 1 | 09-17-2010 09:05 AM |
| Unwanted $nbsp; | Nathanael | Sigil | 10 | 09-07-2010 03:52 PM |
| CSS wacky p indent post-chapter split? | Hitch | Sigil | 0 | 06-17-2010 08:59 PM |
| Mobiperl lost when converting to mobi | Jellby | Mobi | 19 | 08-26-2008 03:10 PM |
| CSS & regex for chapter titles | hpstricker | Calibre | 3 | 07-17-2008 10:13 AM |