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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-16-2020, 05:27 AM   #16
un_pogaz
Chalut o/
un_pogaz is on a distinguished road
 
un_pogaz's Avatar
 
Posts: 105
Karma: 50
Join Date: Dec 2017
Device: Kobo
So, to get the expected behavior (like that of a W3C compliant browser) you have to add a specific Qt CSS property ?! (or to be exact, kept)
...
Whoah.
Great.
Absolutely obvious.
*sighs*
All right, then. Just in case, could you try <p></p> if it works?
I know currently than Calibre filter and delete empty paragraphs, but if it works, it would be probaly a more elegant solution.

Last edited by un_pogaz; 01-16-2020 at 06:04 AM.
un_pogaz is offline   Reply With Quote
Old 01-16-2020, 06:38 AM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 35,876
Karma: 12750379
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, empty paragraph is simply discarded by QTextBrowser. However, with yet another workaround for a Qt bug, <p>&nbsp;</p> does work, so I have changed it to that.

https://github.com/kovidgoyal/calibr...ac2d06b4a01bfa
kovidgoyal is offline   Reply With Quote
Old 01-16-2020, 07:18 AM   #18
un_pogaz
Chalut o/
un_pogaz is on a distinguished road
 
un_pogaz's Avatar
 
Posts: 105
Karma: 50
Join Date: Dec 2017
Device: Kobo
YES, thanks.
Also work in 4.8 and propably all V4.

EDIT: Arf NOoooo
The HTML view repalce all entities. And worse, replace "unbreakable space" by "normal space"

The HTML <p>&nbsp;</p> becomes <p> </p> (with normal space) and will therefore be deleted the next time it is loaded in HTML mode.

Damnit

Last edited by un_pogaz; 01-16-2020 at 07:36 AM.
un_pogaz is offline   Reply With Quote
Old 01-16-2020, 07:45 AM   #19
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 35,876
Karma: 12750379
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by un_pogaz View Post
The HTML view repalce all entities. And worse, replace "unbreakable space" by "normal space"
You need to include the fix using PlainTextEdit from that patch. That works around the bug with QPlainTextEdit replacing nbsp
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding spaces after images and between paragraphs awcross Sigil 7 06-14-2017 03:47 PM
Stop Sigil from inserting unwanted lines between paragraphs Benasam Sigil 16 05-28-2014 04:16 PM
Adding space between paragraphs Gazella Conversion 5 04-03-2014 05:35 PM
Touch Extra spacing between paragraphs on my e-books Aiden Barnes & Noble NOOK 8 12-11-2013 12:17 PM
Getting extra Paragraphs MacEvansCB Calibre 5 12-19-2010 03:46 PM


All times are GMT -4. The time now is 04:40 AM.


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