Hi there! I'm having a little problem with sites that excessively make use of "nowrap" tags, like <http://futurezone.orf.at> I toyed with limit_text_width (quote from dillorc: # Set this to YES, if you want to limit the word wrap width to the vieport # width (may be useful for iPAQ) limit_text_width=YES ), but I noticed that this option doesn't work as I would have expected, because it doesn't force wrapping here (nowrap). Now I think in the context of this dillorc remark, it might be a good idea to override 'nowrap' when limit_text_width is wanted. Am I cruelly breaking standards, or would that make sense? Please have a look at the above site with limit_text_width=YES, and then with the below patch. Thanks for your fantastic work, n. --- src/html.c.orig 2003-03-10 22:04:45.000000000 +0100 +++ src/html.c 2003-03-10 22:10:21.000000000 +0100 @@ -1398,7 +1398,7 @@ style_attrs = *old_style; if (!html->stack[html->stack_top].cell_text_align_set) style_attrs.text_align = text_align; - if (Html_get_attr(html, tag, tagsize, "nowrap")) + if ((Html_get_attr(html, tag, tagsize, "nowrap")) && (!prefs.limit_text_width)) style_attrs.nowrap = TRUE; else style_attrs.nowrap = FALSE;
At 02:51 PM 3/10/2003, Nicolas Kaiser wrote:
I'm having a little problem with sites that excessively make use of "nowrap" tags, like <http://futurezone.orf.at> ... Am I cruelly breaking standards, or would that make sense?
(I went hunting through the specs for a <nowrap> tag until I realized what you meant.) I don't think it breaks standards any more than Opera's new small-screen rendering, which disregards most layout information in an effort to get everything to fit. Kelson Vibber www.hyperborea.org
On Mon, Mar 10, Nicolas Kaiser wrote:
I'm having a little problem with sites that excessively make use of "nowrap" tags, like <http://futurezone.orf.at>
I toyed with limit_text_width (quote from dillorc:
# Set this to YES, if you want to limit the word wrap width to the vieport # width (may be useful for iPAQ) limit_text_width=YES
), but I noticed that this option doesn't work as I would have expected, because it doesn't force wrapping here (nowrap).
"limit_text_width" is intended for table columns with explicitly or implicitly (e.g. by large banner images) set table widths. On futurezone, you have (IIRC; there was already some discussion exactly about this site) something like <td width=500 nowrap>, which is actually some kind of wrong HTML, since any correct interpretation would indeed not wrap the text (if I have understood it correct, strangely, most browsers *do* wrap the text). This is really a reason to send a mail to the webmaster.
Now I think in the context of this dillorc remark, it might be a good idea to override 'nowrap' when limit_text_width is wanted.
Am I cruelly breaking standards, or would that make sense? Please have a look at the above site with limit_text_width=YES, and then with the below patch.
"nowrap" should be honored in any case (at least, it should not be turned off by *this* option), since it can be used for texts where wrapping makes the text unreadable. Sebastian
participants (3)
-
Kelson Vibber
-
Nicolas Kaiser
-
Sebastian Geerken