That would make Python fun...
···
"Matthew D Moss" <matthew.moss@gmail.com> wrote:
... (Apologies for lack of
indentation... can't figure out how to convince google groups to
comply.)
That would make Python fun...
"Matthew D Moss" <matthew.moss@gmail.com> wrote:
... (Apologies for lack of
indentation... can't figure out how to convince google groups to
comply.)
but I'll accept a working
patch if you're up to bug hunting.
Replace
<p class="example">
with
<pre class="example">
and update the corresponding </p>s to </pre>
The examples are prefromatted text, so mark them up that way and you
make life easier for yourself
You'll probably want to remove the
"white-space: pre" bits too.
Douglas
On Sat, 8 Jan 2005 00:42:19 +0900, James Edward Gray II <james@grayproductions.net> wrote:
On Jan 7, 2005, at 9:02 AM, Robert McGovern wrote:
>> Also just wanted to say that the formatting on the quiz page
>>
>> Gray Soft / Not Found
>>
>> is broken for the examples.
>
> In Internet Explorer 6 but fine in Firefox 1.0I'm unhappy with the current Ruby Quiz Web site and intend to replace
it as soon as I can find the time. Because of that, I'm not spending
too much time fiddling with the CSS myself, but I'll accept a working
patch if you're up to bug hunting.I hope I don't sound uncaring. I'm not. I do want Ruby Quiz to have a
great site, but the current version has some built-in weaknesses I want
to get past, so I would rather spend my time replacing it.I do thank you for the information.
James Edward Gray II
Luc Heinrich wrote:
Maybe this is irrelevant, but
what if your script would be called such way:
...Right, your comment is of course valid, but I assumed that the purpose
of the quiz was to find smart and/or elegant ways to achieve the core
problem, not to come up with a 100% foolproof script
Exactly:)
But personally I enjoy to find "smart and/or elegant" solutions
for even boring/tedious tasks (for instance, parsing of
command line arguments
).
"Smart and/or elegant" solution is usually smart and/or elegant
in _all_ its _details_, isn't it? ![]()
At least it should aim at it, IMHO :o)
Sea&Gull <v@vsu.ru> wrote:
--
s&g
This is a hold-over of the original site design when I didn't use pre-formatted whitespace for the examples. (Yes, that was dumb.)
The change you purpose requires me to correct every quiz page. <br />s will need to be translated to \ns as well.
Also, this change is incompatible with the Ruby code blocks, which are probably suffering from the same problems. (I assume.)
I should have said "a working CSS patch", because if it's not that simple it's a waste of time on a doomed site.
These, and other reasons, are why I'm planning a replacement.
James Edward Gray II
On Jan 7, 2005, at 10:12 AM, Douglas Livingstone wrote:
but I'll accept a working
patch if you're up to bug hunting.Replace
<p class="example">
with
<pre class="example">
and update the corresponding </p>s to </pre>
The examples are prefromatted text, so mark them up that way and you
make life easier for yourselfYou'll probably want to remove the
"white-space: pre" bits too.
Ok, you win, very good point. ![]()
Sea&Gull <v@vsu.ru> wrote:
But personally I enjoy to find "smart and/or elegant" solutions
for even boring/tedious tasks (for instance, parsing of
command line arguments).
"Smart and/or elegant" solution is usually smart and/or elegant
in _all_ its _details_, isn't it?
--
Luc Heinrich - lucsky@mac.com
I should have said "a working CSS patch", because if it's not that
simple it's a waste of time on a doomed site.
True, you did say that.
As you have a doctype in there already, you could get off with putting this:
_white-space: pre;
After the following line:
white-space: pre-wrap; /* avoid overflow */
(The underscore at the start will make it apply only in IE, leaving
other browsers to display as they do already.)
Douglas
I dropped this in and saw no change in any of my browsers, just as you said. I've updated the site with the change. Does this fix the examples in IE 6?
Thanks for the tips.
James Edward Gray II
On Jan 7, 2005, at 1:09 PM, Douglas Livingstone wrote:
I should have said "a working CSS patch", because if it's not that
simple it's a waste of time on a doomed site.True, you did say that.
As you have a doctype in there already, you could get off with putting this:
_white-space: pre;
After the following line:
white-space: pre-wrap; /* avoid overflow */
(The underscore at the start will make it apply only in IE, leaving
other browsers to display as they do already.)
> (The underscore at the start will make it apply only in IE, leaving
> other browsers to display as they do already.)I dropped this in and saw no change in any of my browsers, just as you
said. I've updated the site with the change. Does this fix the
examples in IE 6?
It does indeed fix the problem for IE6, thanks Douglas for finding a
fix and James for putting it in place.
Rob