Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

render_genshi ignores type='html' #50

Open
drewp opened this Issue · 1 comment

2 participants

@drewp

web/contrib/template.py has this logic:

    if self._type == "text":
        ...
    else:
        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
Owner

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
Something went wrong with that request. Please try again.