- From: Randy Edmunds <redmunds@adobe.com>
- Date: Thu, 31 Jan 2013 08:22:27 -0800
- To: Peter Moulder <peter.moulder@monash.edu>, "www-style@w3.org" <www-style@w3.org>
Peter, > The description so far doesn't mention how to handle forced breaks in the text to be balanced. > I see that the javascript implementation simply strips these, which of course seems wrong. > What's less clear is what the right behaviour is: whether to balance individual br-delimited > fragments independently of each other, or whether <br> is allowed to leave a short line, > or something part way between, or whether to try something more sophisticated that sometimes > uses more than the minimum number of lines in order to reduce variation and/or short lines. This does not seem like an intended case, and I honestly don't have any preference over what the behavior should be. Another possibility is to detect break tags and do not reformat in that case. Correct, the JavaScript implementation does not handle that case. It uses <br> to break the text, so during subsequent formatting due to onresize() event, it simply strips out <br> tags. That code could be updated to keep track of which <br> tags it inserted and only strip those (once a desired behavior is defined). Thanks, Randy
Received on Thursday, 31 January 2013 16:22:59 UTC