Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-02-2019, 06:10 AM   #1
Patakess
Junior Member
Patakess began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2019
Device: none
<p> jump to the line alone

Hello.

I have a problem...

When I code paragraph <p></p> side by side

If I save, the second paragraph goes below, destroying my layout.

Before save:
Code:
<p>Lorem ipsum</p><p>Ipsum lorem</p>
After save:
Code:
<p>Lorem ipsum</p>
<p>Ipsum lorem</p>
Just... Why ? It's normal ?

Thanks in advance and sorry fort my english...
Patakess is offline   Reply With Quote
Old 03-02-2019, 08:27 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
There is no change in the ebook's layout to the reader between those two versions, whereas the second is much more readable and clean. Since Sigil/Qt's QPlainTextEdit in CodeView which is line editor, based it serializes to one block element per line as is the norm. This prevents long single page run on blocks of xhtml code which can be almost imposiible to edit.
KevinH is offline   Reply With Quote
Old 03-02-2019, 09:31 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The first example is sloppy coding and the second is not.
JSWolf is offline   Reply With Quote
Old 03-02-2019, 10:32 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
The first example is sloppy coding and the second is not.
The first is acceptable and was commonly used for devices with byte limited storage (saved 2 bytes).
There are not many recent devices with tiny storage, making the hard to read by Human code, unnecessary.

Sigil prettied the code (indented nesting, new lines for new blocks).

As far as rendering: No difference either way (but it would be a real PITA to find the error, if it did not)
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting a line indented to end of previous line (Poetry) sjfan ePub 18 01-22-2019 06:39 PM
italic at end of line causes next line to start with a space ebookreadr Sigil 29 03-20-2017 11:25 AM
Epub converted to Mobi, hyperlinks jump to line after on Kindle dkingdesigner Conversion 21 07-07-2013 06:57 AM
jump to chapters lexmoen Sigil 27 10-25-2010 05:04 AM


All times are GMT -4. The time now is 02:03 AM.


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