Bug 1970

Summary: GtkHtml2 - incorrect line spacing
Product: Claws Mail (GTK 2) Reporter: Tarlika Elisabeth Schmitz <claws-mail>
Component: Plugins/Gtkhtml2 ViewerAssignee: users
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: P3    
Version: 3.5.0   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
HTML - <li> example
none
HTML <div> example
none
HTML - <span><br> example
none
screenshot <li>, ClawsMail/Firefox comparison
none
screenshot <div>, ClawsMail/Firefox comparison
none
screenshot <span><br>, ClawsMail/Firefox comparison none

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