#QUALITY by cg
class: ActiveHelpView
changed: #for:onDevice:
be more robust against non-strings as help text
--- a/ActiveHelpView.st Wed Nov 02 19:23:32 2016 +0100
+++ b/ActiveHelpView.st Wed Nov 02 19:23:59 2016 +0100
@@ -93,6 +93,12 @@
|helpView textView textShown|
helpView := self onDevice:aDevice.
+ someText isString ifFalse:[
+ textView := Label onDevice:aDevice.
+ textView logo:someText.
+ ^ (helpView withView:textView)
+ ].
+
((someText startsWith:'<HTML>') or:[ someText startsWith:'<html>' ]) ifTrue:[
textView := HTMLView onDevice:aDevice.
textView level:0.