[#1347] quote then unquote... not the right way
[email protected] (betabug)
| Newsgroups | gmane.comp.web.zope.zwiki |
|---|---|
| Message-ID | <20071118072609-0800__18158.1116783947$1195399656$gmane$org@zwiki.org> |
It would be useless to quote the stuff in summary() first, then unqote it later. I'm not sure what the quoting in summary() is used for. If summary() is used from a page template, the quoting is happening automatically and people would use the "structure" keyword to avoid it even. Looking at the code, I think that the summary() and renderedSummary() methods need some cleaning up. I think there is some discrepancy between the docstring and what the methods actually do. Summary is supposed to output plain text, but in fact if there is e.g. rst markup, that will show up too - especially annoying if the page starts with a title and the line of dashes showing up in the summary. renderedSummary without html quoting will work somehow, but you will end up with a big header most of the times when using it that way (because often the first paragraph of a document is the title. -- forwarded from http://zwiki.org/1347UtilsPyMissingHtmlUnquoteFromRenderedSummary#[email protected]