done

On Nov 9, 11:21 pm, Bruno Rocha <[email protected]> wrote:
> Minor suggestion for MARKMIN()
>
> If I am fetching the Markmin content from database, and database field is
> empty (None), MARKMIN raises an error.
>
> I am solving this problem with :
>
> MARKMIN(myfield or ' ')
>
> But, I think MARKMIN can itself resolve what to do if the received arg is
> NoneType)
>
>   File "/home/rochacbruno/webapps/natalanimal2/web2py/gluon/html.py",
> line 1892, in xml
>     class MARKMIN(XmlComponent):
>   File 
> "/home/rochacbruno/webapps/natalanimal2/web2py/gluon/contrib/markmin/markmin2html.py",
> line 317, in render
>     text = regex_dd.sub('``\g``:latex ',text)
> TypeError: expected string or buffer

Reply via email to