ZF-9108: Zend_Captcha_Image always has <br/> in rendered element
Description
At the moment it is not possible to put the input text field of an Zend_Form_Element_Captcha besides the captcha image with css for example.
The generated code looks like this:

The render() method looks like this at the moment:
public function render(Zend_View_Interface $view = null, $element = null)
{
return '
';
}
So there is always a
in it which makes it hard to change the appearance with css.
The
should not be hardcoded and the output should be more flexible, so a developer can put the textfield right beside the Image.
At the moment I changed that behaviour by extending Zend_Captcha_Image and changing the render() method.
Comments
Posted by Martin de Keijzer (martin1982) on 2010-05-11T06:13:19.000+0000
Totally agree, created a patch to simplify update
Posted by Mickael Perraud (mikaelkael) on 2010-07-16T13:07:43.000+0000
Fixed on trunk with r22583 and merge into 1.10 branch with r22584