<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>27074</bug_id>
          
          <creation_ts>2009-07-08 02:20:08 -0700</creation_ts>
          <short_desc>Text should wrap after hyphens, not before</short_desc>
          <delta_ts>2010-11-08 10:53:47 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41103</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter>iain.dalton</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>phnixwxz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>130396</commentid>
    <comment_count>0</comment_count>
    <who name="">iain.dalton</who>
    <bug_when>2009-07-08 02:20:08 -0700</bug_when>
    <thetext>Calibre (http://calibre.kovidgoyal.net/) uses Webkit, I&apos;m not sure what version, and it wraps hyphens to the next line, which looks weird, and not book-like. The dev says it&apos;s a WebKit issue, so I&apos;m reporting it here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>130459</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-07-08 10:48:15 -0700</bug_when>
    <thetext>Perhaps you&apos;d like to include a list of steps necessary to reproduce the problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>130614</commentid>
    <comment_count>2</comment_count>
    <who name="">iain.dalton</who>
    <bug_when>2009-07-08 21:57:24 -0700</bug_when>
    <thetext>1. Download and install Calibre (http://calibre.kovidgoyal.net/download).
2. Open an ebook (http://www.epubbooks.com/book/60/count-of-monte-cristo) with Calibre&apos;s viewer.
3. Resize the window until it has to break a hyphenated word (of which this book has several right at the top).

Of the few ebooks I&apos;ve looked at, only this one puts the hyphen on the new line. I see nothing suspicious in the HTML, so I don&apos;t know why.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131061</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-07-10 21:46:12 -0700</bug_when>
    <thetext>&gt; I see nothing suspicious in the HTML, so I don&apos;t know why.

Is this reproducible with WebKit-based Web browsers? Could you make a reduction, or upload the HTML source here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131206</commentid>
    <comment_count>4</comment_count>
    <who name="">iain.dalton</who>
    <bug_when>2009-07-12 14:48:53 -0700</bug_when>
    <thetext>In looking at the source, I see that the hyphens are actually en-dashes misused. I&apos;m no typographer, but the only place I&apos;ve know an en-dash to occur without spaces around it (other than this misuse as a hyphen) is in a range, such as 2–5. Should breaking occur at all at an en dash?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>297211</commentid>
    <comment_count>5</comment_count>
      <attachid>71384</attachid>
    <who name="Xianzhu Wang">phnixwxz</who>
    <bug_when>2010-10-20 20:15:37 -0700</bug_when>
    <thetext>Created attachment 71384
test case

I couldn&apos;t reproduce the bug in Chrome 7 and 8 and Safari 5, but I could reproduce it in Qt version of WebKit.

Qt version of WebKit uses QTextBoundaryFinder to find line breaking opportunities, so this bug should be of QT, not of WebKit itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306217</commentid>
    <comment_count>6</comment_count>
    <who name="Pat">vincent.bradley</who>
    <bug_when>2010-11-08 10:53:47 -0800</bug_when>
    <thetext>Using QtWebKit trunk (wk45), this is not reproducible.
The test content is using entities &amp;#2013; for the endash and the breaks occur *after* the dash. Tried the test content saved as UTF-8 with and without BOM, also UTF-16 and the content displayed and broke after the endash. Used QtTestBrowser to verify on Symbian and Linux. Both work as expected.

Test content, as provided, used:
&lt;!DOCTYPEhtml&gt;
abcdefg&amp;#x2013;abcdefg&amp;#x2013;abcdefg&amp;#x2013;abcdefg&amp;#x2013;abcdefg&amp;#x2013;abcdefg&amp;#x2013; ....


Note, that test content has no meta tag:
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-16&quot;&gt; 
Tested with meta tag added and works as expected.

The behavior is the same for Firefox, Safari, and QtTestBrowser.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>71384</attachid>
            <date>2010-10-20 20:15:37 -0700</date>
            <delta_ts>2010-10-20 20:15:37 -0700</delta_ts>
            <desc>test case</desc>
            <filename>testendash.html</filename>
            <type>text/html</type>
            <size>736</size>
            <attacher name="Xianzhu Wang">phnixwxz</attacher>
            
              <data encoding="base64">PCFET0NUWVBFaHRtbD4KYWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIw
MTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYj
eDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVm
ZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJj
ZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7
YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDIwMTM7YWJjZGVmZyYjeDI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