Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 12-21-2023, 10:32 AM   #1
Trottel
Junior Member
Trottel began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2021
Device: POCO F2 Pro
Remove blank lines between paragraphs with the same style

Is it possible to remove blank lines only between paragraphs with the same style? For example, I have this code:
Code:
<p class="style1">Line 1</p>
<p class="style1">&nbsp;</p>
<p class="style1">Line 2</p>
<p class="style1">&nbsp;</p>
<p class="style2">Line 3</p>
<p class="style2">&nbsp;</p>
<p class="style2">Line 4</p>
<p class="style2">&nbsp;</p>
<p class="style1">Line 5</p>
And I want it to look like this:
Code:
<p class="style1">Line 1</p>
<p class="style1">Line 2</p>
<p class="style1">&nbsp;</p>
<p class="style2">Line 3</p>
<p class="style2">Line 4</p>
<p class="style2">&nbsp;</p>
<p class="style1">Line 5</p>
Trottel is offline   Reply With Quote
Old 12-21-2023, 11:13 AM   #2
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,030
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
There should be NO <p class="style1">&nbsp;</p> anywhere.
White space is done in the css style. Automatic if styling paragraphs in Word or LO Writer.
Quoth is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add blank lines between paragraphs. bn_el KOReader 5 11-02-2017 11:14 AM
blank lines between paragraphs franklekens Kobo Reader 71 01-26-2015 12:52 PM
Blank lines between paragraphs? ascherjim OpenInkpot 30 12-03-2009 12:19 AM
Removing blank lines between paragraphs? corroonb Workshop 3 08-13-2009 04:23 PM
Insert Blank Lines Between Paragraphs Timoleon Calibre 14 03-22-2009 02:43 PM


All times are GMT -4. The time now is 05:50 AM.


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