Long coloured underlines

Bug #449837 reported by arcade
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
Won't Fix
Medium
Unassigned

Bug Description

Answers question #85493, the tidy & byte compile part of this question was kindly solved by lborgman. But more information was requested about the 'long underlines' part. I have guessed that this could be a bug so I have filed my reply as a bug report.

System Details:
Debian - Testing (squeeze),
Emacs - 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.6)
nXhtml - 1.96

* Long underlines
As requested by lborgman please find below is some example markup which exhibits this problem (Its a simple marketing e-mail 'flyer' for my work). After using tidy if an underlined html/CSS items is immediately followed by a line break/return the underline continues across the page & goes on to the next line to finish @ the next block of text. I have placed 2 screen-shots of part of this code showing the lines problem here:

http://www.wip.takein.eu/nxhtml_underlines_1.png
http://www.wip.takein.eu/nxhtml_underlines_2.png

If I am honest this is more of a nuisance than a major bug but it would be good if it was solved. I hope this information helps.

-----------------html below---------------------

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; UTF-8" />
    <title>
      Crunch Promotion - Last 3 Weeks
    </title>
    <style type="text/css">
      /*<![CDATA[*/
      body {
          font-family: Helvetica, Verdana, Arial, sans-serif;
      }

      #flyer {
          width: 626px;
      }

      #masthead {
          line-height: 1.9em;
          background-color: #ffbb98;
          padding-top: 15px;
          padding-left: 15px;
          padding-right: 15px;
          padding-bottom: 1px;
      }

      #logo {
          position: relative;
          border: 0;
      }

      .footer {
          font-size: 8pt;
          color:#808080;
          line-height: 1.15em;
          padding-top: 0px;
          padding-left: 15px;
          padding-right: 15px;
          padding-bottom: 15px;
      }

      .unsubscribe {
          float: right;
          width: 250px;
          text-align: right;
          font-size: 8pt;
          padding-right: 5px;
      }
      /*]]>*/
      </style>
    </head>
    <body>
      <div id="flyer">
 <div id="masthead">
   <a href="http://www.adamsez.com"><img src=
   "adamsez_logo_red.gif" id="logo" alt="www.adamsez.com"
   name="logo" /></a>
   <p>
     <span style=
            "font-size:43pt; line-height: 0.8em; font-weight:bold;">Crunch
     Promotion</span>
   </p>
   <p>
     <span style=
              "font-size:28pt; line-height: 1.25em;"><span style=
            "font-weight:bold;">Only 3 weeks left</span> to buy
     Adamsez<br />
     freestanding baths @ <span style="font-weight:bold;">20%
     off</span><br />
     Offer must end <span style="font-weight:bold;">31 October
     2009</span></span>
   </p>
   <p style=
          "text-decoration: underline; text-decoration: overline; font-size: 16pt; font-weight:bold;">
     <a href=
        "http://www.adamsez.com/doc-vault/Adamsez-Crunch-Promotion-Leaflet.aspx"
        style="color: #000000;">Click here to find out more</a>
   </p>
   </div><img src="urbana_red.jpg" alt=
   "Urbana freestanding bath" />
   <div class="footer">
     <p>
       <span class="unsubscribe"><a href=
        "mailto:<email address hidden>?subject=Please%20unsubscribe%20this%20e-mail%20address"
        style=
        "color: #808080; text-decoration:none;">unsubscribe</a></span>
       Adamsez (NI) Ltd<br />
       766 Upper Newtownards Road<br />
       Dundonald<br />
       BT16 1TQ<br />
       <a href="mailto:<email address hidden>" style=
              "color: #808080; text-decoration:none;"><email address hidden></a><br />

       +44 (0) 28 9048 0466
     </p>
   </div>
      </div>
    </body>
</html>

-----------------html above---------------------

Revision history for this message
lborgman (lennart-borgman) wrote :

Thanks arcade for sending this as a bug report.

(You could have made things more simple for you by attaching the files to the bug report. That is possible here, but not in Answers.)

I see now what you mean. Those underlines are not a bug in nXhtml, but indeed I think it is a bug in Emacs instead. I will file a bug report and use your example here for it. Thanks.

Revision history for this message
lborgman (lennart-borgman) wrote :
Changed in nxhtml:
importance: Undecided → Medium
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.