[Gambas-user] Issue 566 in gambas: Gambas terminates string with '<' character (ASCII 60)

gambas at ...2524... gambas at ...2524...
Sat Oct 4 16:52:23 CEST 2014


Updates:
	Status: Invalid
	Labels: -Type-Bug -GUI-Any Type-Documentation GUI-GTK

Comment #1 on issue 566 by tabo... at ...626...: Gambas terminates string  
with '<' character (ASCII 60)
https://code.google.com/p/gambas/issues/detail?id=566

Did you try:

   Print "test<test"

It shows you that Gambas does _not_ terminate strings at "<" (which would  
be insane).

Your problem merely lies in the GUI controls which take a subset of HTML as  
input. My tests showed that Message (from all the GUI components) belongs  
to this set of controls.

But gb.qt4's Message class seems to handle an incomplete tag (which is what  
your "<test" substring is) differently: it is printed as text in gb.qt4 but  
the gb.gtk* components will interpret it as (invalid) HTML.

The solution in any case is to write your text HTML-aware:

   Message.Info("test<test")

So this is actually a documentation bug for the Message class. I will fix  
it in a minute.

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings




More information about the User mailing list