xles / hyphenator

Automatically exported from code.google.com/p/hyphenator
GNU General Public License v3.0
0 stars 0 forks source link

'orphancontrol' option does not affect output in paragraphs without </p> #194

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Look at a web page where last word of paragraph is hyphenated, but where the 
paragraph does not end in </p>
2. Change 'orphancontrol' option to 2 or 3
3. See that last word is still hyphenated

What is the expected output? What do you see instead?

I expect last in each paragraph not to be hyphenated, but all values of 
'orphancontrol' have the same effect as the default.

What version of the product are you using? On what operating system?

4.2.0, on GNU/Linux.

Please provide any additional information below.

Have a look at http://zrajm.org/st6/ here 'orphancontrol' = 2, but the last 
word of the first paragraph is still hyphenated.

Original issue reported on code.google.com by zra...@gmail.com on 25 Dec 2013 at 5:02

GoogleCodeExporter commented 9 years ago
Thanks for reporting this issue.

The problem is, that the nodeValue of elements that are not closed with a tag 
also contain newline and other space characters.

I'll have to filter them out.

Regards, Mathias

Original comment by mathiasn...@gmail.com on 21 Jan 2014 at 3:34

GoogleCodeExporter commented 9 years ago
This issue led to an interesting conversation on the html-mailing list: 
http://lists.w3.org/Archives/Public/public-html/2014Jan/0112.html

The working draft has therefor been extended with some examples clearly saying 
that there will be issues with white space: 
http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#optional
-tags

So I definitely do NOT recommend to omit tags!

Original comment by mathiasn...@gmail.com on 28 Feb 2014 at 3:35

GoogleCodeExporter commented 9 years ago
anyway: it is fixed in r1233

Original comment by mathiasn...@gmail.com on 14 Mar 2014 at 7:31