render_genshi ignores type='html' #50

drewp opened this Issue Mar 17, 2011 · 1 comment


None yet
2 participants

drewp commented Mar 17, 2011

web/contrib/ has this logic:

    if self._type == "text":
        cls = None
        type = None ##

        if type:
            return stream.render(type)

On the line where I put the ##, it should say type=self._type. Currently, calling render_genshi(type='html') and render_genshi(type='xhtml') do the exact same thing, which seems like a mistake. (For the record, the current code is always picking xhtml.)


aaronsw commented Apr 11, 2011

Do you want to submit a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment