MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   <br /> Tags (https://www.mobileread.com/forums/showthread.php?t=55504)

ghostyjack 09-03-2009 03:19 PM

<br /> Tags
 
I've just downloaded 0.1.3 and so far it's working great and solves the freezing issue I had with 0.1.2 (which I had to revert to 0.1.1 until that issue was resolved).

One issue though that I though was resolved with 0.1.2, so should not be in 0.1.3 is that when I set heading tags in the WYSIWYG interface, I get a <br /> being added inside the tag. I may be mistaken about this being fixed as I couldn't seem to find it in the forum, change log or issues list (I was a bit rushed when looking for this so may have misted it).


Also I've notice that when I create a blank line (for scene changes), instead of getting the &nbsp; code added, I get a <br /> in there instead. Is it better to have a <br /> tag instead of a &nbsp; code in the paragraph tags?

Valloric 09-03-2009 04:15 PM

Quote:

Originally Posted by ghostyjack (Post 579153)
I've just downloaded 0.1.3 and so far it's working great and solves the freezing issue I had with 0.1.2 (which I had to revert to 0.1.1 until that issue was resolved).

I love accidentally fixing bugs I'm not even aware of. :D

Quote:

Originally Posted by ghostyjack (Post 579153)
One issue though that I though was resolved with 0.1.2, so should not be in 0.1.3 is that when I set heading tags in the WYSIWYG interface, I get a <br /> being added inside the tag. I may be mistaken about this being fixed as I couldn't seem to find it in the forum, change log or issues list (I was a bit rushed when looking for this so may have misted it).

This wasn't fixed. Webkit adds it, and I can't fix it, I can only make a workaround. But honestly I think this can be left alone. It doesn't affect the formatting, and I'm guessing the Webkit devs have some sort of a good reason for adding it at the end of the element. Then again, it could very likely be a bug on their end.

So far I haven't had reports of people being adversely affected by this.

Quote:

Originally Posted by ghostyjack (Post 579153)
Also I've notice that when I create a blank line (for scene changes), instead of getting the &nbsp; code added, I get a <br /> in there instead. Is it better to have a <br /> tag instead of a &nbsp; code in the paragraph tags?

I honestly don't know what you are talking about here. Please provide some more information.

ghostyjack 09-03-2009 06:10 PM

What I mean is that I was seeing this for a blank line:
<p>&nbsp;</p>

And now this is being generated:
<p><br /></p>

Valloric 09-03-2009 08:40 PM

Quote:

Originally Posted by ghostyjack (Post 579353)
What I mean is that I was seeing this for a blank line:
<p>&nbsp;</p>

And now this is being generated:
<p><br /></p>

Hm... I believe I updated Qt from 4.5.1 to 4.5.2 (for Windows) between Sigil 0.1.1 and 0.1.3. That was possibly what changed this.

But it works either way. Actually I like the <br/> tag more.

Moonraker 09-13-2009 10:56 PM

I always thought '&nbsp;' was used for horizontal spacing and positioning - although I think it more correct to use '& #160;'

I believe various browsers render it differently so it can be unreliable.

The <br /> tag is correctly used for vertical spacing (line breaks) although I believe it is technically incorrect for strict xhtml but okay for transitional.

Valloric 09-14-2009 08:08 AM

Quote:

Originally Posted by Moonraker (Post 591150)
The <br /> tag is correctly used for vertical spacing (line breaks) although I believe it is technically incorrect for strict xhtml but okay for transitional.

AFAIK <br /> is perfectly valid strict XHTML.


All times are GMT -4. The time now is 06:30 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.