[Bug] [Color] printHtmlString

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug] [Color] printHtmlString

Jerome Peace
Hi Mathieu,

Good bug find.

A good help would be to write it up as a mantis
report.

http://bugs.impara.de/login_page.php

If you don’t have an account you can get one.

-----

When you write up the report:


Describe how to get the bug to come up.

As to your fix.

It needs to pass a test such as:

crayons := {
Color red .
Color green .
Color blue .
Color yellow .
Color cyan .
Color magenta .
Color white .
Color black .
Color gray .
Color orange .

} .

crayons collect: [ :c | c printHtmlString ]

When I substituted your suggestion for
Color>>printHtmlString I got:

#('FF00' '0FF0' '00FF' 'FFFF0' '0FFFF' 'FF0FF'
'FFFFFF' '000' '7F7F7F' 'FF990')

which I don’t think will work for html.

-----

Also for fileouts you can select to fileout just the
one method. (You have to call up the menu over the
selected method instead of the class) I did not try
filing in the full class in my above test.

Again you found a real bug. I hope you will follow it
thru.

Yours in service, -- Jerome Peace.
 




>mathieu mathk.sue at gmail.com
>Tue Jun 13 21:35:16 UTC 2006 wrote:

>Hello
>
>I find a bug in Color class
>
>Does it not better like this?:
>
>Color>>printHtmlString
> "answer a string whose characters are the html
representation
> of the receiver"
> ^ (self red * 255) asInteger printStringHex , (self
green * 255)
>asInteger printStringHex , (self blue * 255)
asInteger printStringHex
>
>
>I have make the change in the file out.
>
>Best regards,
>Mathieu

<snipped class file out.>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

Reply | Threaded
Open this post in threaded view
|

Re: [Bug] [Color] printHtmlString

Mathieu SUEN
2006/6/14, Peace Jerome <[hidden email]>:

>  Hi Mathieu,
>
> Good bug find.
>
> A good help would be to write it up as a mantis
> report.
>
> http://bugs.impara.de/login_page.php
>
> If you don't have an account you can get one.
>
> -----
>
> When you write up the report:
>
>
> Describe how to get the bug to come up.
>
> As to your fix.
>
> It needs to pass a test such as:
>
> crayons := {
> Color red .
> Color green .
> Color blue .
> Color yellow .
> Color cyan .
> Color magenta .
> Color white .
> Color black .
> Color gray .
> Color orange .
>
> } .
>
> crayons collect: [ :c | c printHtmlString ]
>
> When I substituted your suggestion for
> Color>>printHtmlString I got:
>
> #('FF00' '0FF0' '00FF' 'FFFF0' '0FFFF' 'FF0FF'
> 'FFFFFF' '000' '7F7F7F' 'FF990')
>
> which I don't think will work for html.
>
> -----


In fact I was trying to to copy in html under  3.9 and I got an error.
After the change of color the copy works fine. (ie with the #...)



>  Also for fileouts you can select to fileout just the
> one method. (You have to call up the menu over the
> selected method instead of the class) I did not try
> filing in the full class in my above test.


Ok I will do so.

> Again you found a real bug. I hope you will follow it
> thru.


Yeap
 Thanks for the information :-)

Math