Content deleted Content added
Line 407:
Actually, I've got them working with &nbsp; except in the one case of a subscript 2''n'' – 1 where I had to use a nowrap within the <nowiki> <sub> …</sub> </nowiki>. So I've managed to work around the problem. I've went into Internet Explorer and the nowrap in my example above does work there so it might just be a Chrome bug. Also, the sfrac problem is in both Chrome and Internet Explorer so that problem seems to be a Wikipedia bug. [[User:RJGray|RJGray]] ([[User talk:RJGray|talk]]) 20:25, 4 May 2016 (UTC)
== Problems with "&nbsp;" in Internet Explorer and with "nowrap" in Chrome ==
Thank you David for telling me that I may be seeing a bug. I've done some more experimenting and found a sentence that I can get to wrap properly in either Chrome and Internet Explorer, but not both.
The following sentence which uses "&nbsp;" wraps properly in Chrome, but not in Internet Explorer. For example, by shrinking your window, the 3 occurrences of "''g''(" can wrap before the "(".
A one-to-one correspondence between ''T'' and '''R''' is given by the function: ''g''(''t'') <nowiki>=</nowiki> ''t'' if ''t'' ∈ ''T''<sub>0</sub>, ''g''(''t''<sub>{{nowrap|2''n'' – 1}}</sub>) <nowiki>=</nowiki> ''t<sub>n</sub>'', and ''g''(''t''<sub>2''n''</sub>) <nowiki>=</nowiki> ''a<sub>n</sub>''.
The next sentence which uses "nowrap" wraps properly in Internet Explorer, but not in Chrome. The 1st occurrence works for Chrome, but Chrome can wrap within the subscripts in the next 2 occurrences.
A one-to-one correspondence between ''T'' and '''R''' is given by the function: {{nowrap|''g''(''t'') <nowiki>=</nowiki> ''t''}} if ''t'' ∈ ''T''<sub>0</sub>, {{nowrap|''g''(''t''<sub>2''n'' – 1</sub>) <nowiki>=</nowiki> ''t<sub>n</sub>''}}, and {{nowrap|''g''(''t''<sub>2''n''</sub>) <nowiki>=</nowiki> ''a<sub>n</sub>''}}.
I've just fixed the 1st occurrence so that at least it works in both browsers. In many cases "&nbsp;" works in both browsers, which is why I've been switching over to it.
I find these examples very interesting. I am specifying the same no-wrap regions in two different ways. Since I'm getting two different behaviors in Chrome or Internet Explorer, it seems unclear whether the bug is in a browser or in Wikipedia code. However, since I can get the proper no-wrapping behavior by using different text, the problem can be fixed in Wikipedia. Actually, I could do it myself with we had a browser template so I could write: <nowiki> {{browser | Chrome | … }} {{browser | Internet Explorer | … }} {{browser | default | … }} </nowiki>. Of course, it would be preferable for this to be done by the Wikipedia people who maintain "&nbsp;" and "nowrap". Can my examples be communicated to them? Thanks, [[User:RJGray|RJGray]] ([[User talk:RJGray|talk]]) 14:31, 6 May 2016 (UTC)
|