Bug 1970 - GtkHtml2 - incorrect line spacing
Summary: GtkHtml2 - incorrect line spacing
Status: RESOLVED WONTFIX
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/Gtkhtml2 Viewer (show other bugs)
Version: 3.5.0
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2009-08-03 18:06 UTC by Tarlika Elisabeth Schmitz
Modified: 2013-04-13 09:57 UTC (History)
0 users

See Also:


Attachments
HTML - <li> example (2.59 KB, text/html)
2009-08-03 18:08 UTC, Tarlika Elisabeth Schmitz
no flags Details
HTML <div> example (2.49 KB, text/html)
2009-08-03 18:10 UTC, Tarlika Elisabeth Schmitz
no flags Details
HTML - <span><br> example (2.52 KB, text/html)
2009-08-03 19:03 UTC, Tarlika Elisabeth Schmitz
no flags Details
screenshot <li>, ClawsMail/Firefox comparison (64.17 KB, image/jpeg)
2009-08-03 19:06 UTC, Tarlika Elisabeth Schmitz
no flags Details
screenshot <div>, ClawsMail/Firefox comparison (67.72 KB, image/jpeg)
2009-08-03 19:07 UTC, Tarlika Elisabeth Schmitz
no flags Details
screenshot <span><br>, ClawsMail/Firefox comparison (67.88 KB, image/jpeg)
2009-08-03 19:08 UTC, Tarlika Elisabeth Schmitz
no flags Details

Description Tarlika Elisabeth Schmitz 2009-08-03 18:06:31 UTC
A 1- or 2-pixel space is introduced between rows in various situation described below, which becomes obvious when using coloured backgrounds. All three examples have block-display in common.

1) list <li>

.even {
background-color: #444444;
display: block;
}

<ul>
<li><span class="S1510 odd">LSE          open 08:00 close 16:30 </span></li>
<li><span class="S1510 even">NYSE         open 14:30 close 21:00 </span></li>
</ul>

If you remove "display: block", the space disappears.


2) <div>

.even {
padding: 3px 0 3px 3px;
background-color: #444444;
display: block;
}


<div class="S1510 odd">LSE          open 08:00 close 16:30 </div>
<div class="S1510 even">NYSE         open 14:30 close 21:00 </div>

3) <span><br>

.even {
padding: 3px 0 3px 3px;
background-color: #444444;
display: block;
}

<span class="S1510 odd">LSE          open 08:00 close 16:30 </span><br>
<span class="S1510 even">NYSE         open 14:30 close 21:00 </span><br>

If you remove "display: block", the space disappears.
Firefox displays a big space between rows unless you take <br> out.


============

I shall add HTML and screenshots for all three examples.
Comment 1 Tarlika Elisabeth Schmitz 2009-08-03 18:08:41 UTC
Created attachment 705 [details]
HTML - <li> example
Comment 2 Tarlika Elisabeth Schmitz 2009-08-03 18:10:11 UTC
Created attachment 706 [details]
HTML <div> example

The first two <span> tags are not followed by <br> to show the difference.
Comment 3 Tarlika Elisabeth Schmitz 2009-08-03 19:03:53 UTC
Created attachment 707 [details]
HTML - <span><br> example

The first two <span> tags are not followed by a <br> tag to demonstrate the difference.
Comment 4 Tarlika Elisabeth Schmitz 2009-08-03 19:05:20 UTC
Please, ignore comment #2. I confused my attachments. It was meant for attachment 707 [details].
Comment 5 Tarlika Elisabeth Schmitz 2009-08-03 19:06:43 UTC
Created attachment 708 [details]
screenshot <li>, ClawsMail/Firefox comparison
Comment 6 Tarlika Elisabeth Schmitz 2009-08-03 19:07:25 UTC
Created attachment 709 [details]
screenshot <div>, ClawsMail/Firefox comparison
Comment 7 Tarlika Elisabeth Schmitz 2009-08-03 19:08:11 UTC
Created attachment 710 [details]
screenshot <span><br>, ClawsMail/Firefox comparison
Comment 8 Paul 2013-04-13 09:57:45 UTC
the gtkhtml2 plugin has now been dropped and superseded by the Fancy plugin

Note You need to log in before you can comment on or make changes to this bug.