03-02-2019, 06:10 AM | #1 |
Junior Member
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> Code:
<p>Lorem ipsum</p> <p>Ipsum lorem</p> Thanks in advance and sorry fort my english... |
03-02-2019, 08:27 AM | #2 |
Sigil Developer
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.
|
03-02-2019, 09:31 AM | #3 |
Resident Curmudgeon
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.
|
03-02-2019, 10:32 AM | #4 |
Well trained by Cats
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
|
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) |
|
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 |