Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2009, 11:56 AM   #1
sideburnt
Connoisseur
sideburnt began at the beginning.
 
Posts: 83
Karma: 46
Join Date: May 2009
Device: Sony prs-505
Remove <p> tags?

I'm trying to remove <p> tags from my LIT files. I have a grasp of CSS so I have tried to nulify the carrage return with

p { margin:0px; padding:0px; }

but this doesn't work.

Can anyone help?, I'm hoping to do this via the CSS override in Calibre, rather than processing via a HTML editor first (e.g. find and replace )
sideburnt is offline   Reply With Quote
Old 06-11-2009, 12:05 PM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
What exactly do you want to remove? You may want to try adding "text-indent: 0;" to the CSS (or even "display: none;").
Jellby is offline   Reply With Quote
Advert
Old 06-11-2009, 12:10 PM   #3
sideburnt
Connoisseur
sideburnt began at the beginning.
 
Posts: 83
Karma: 46
Join Date: May 2009
Device: Sony prs-505
display:inline; does the trick, now to get calibre to recognise the paragraphs.

and to be clear, its the line breaks I'm trying to remove. I have a lot of LIT files from work that are quite old and have pages set out thus;

<p>hello I'm a piece of text blah blah blah blah</p>
<p> and I'm the second line of the original text</p>]

Which displays on my 505 as

hello I'm a piece of text blah blah
blah blag
and I'm the second line of the original
text
etc etc etc etc etc

UGLY.

Last edited by sideburnt; 06-11-2009 at 12:14 PM.
sideburnt is offline   Reply With Quote
Old 06-11-2009, 12:22 PM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Then yes, it's "display: inline;" what you need. But the LIT are broken if they have each line wrapped in <p> tags.
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove all BUT certain tags? eric11210 Calibre 32 08-10-2010 10:34 AM
Remove Tags from all books silverraven Calibre 3 08-03-2010 09:43 AM
How to remove all tags at once? al35 Calibre 11 04-09-2010 11:51 AM
Remove spacing between paragraphs - what about div tags ? NASCARaddicted Calibre 5 11-07-2009 05:47 AM
RFE: Remove remove tags in bulk edit magphil Calibre 0 08-11-2009 10:37 AM


All times are GMT -4. The time now is 11:41 PM.


MobileRead.com is a privately owned, operated and funded community.