Ticket #11 (closed defect: worksforme)
Editing "Test for pygments broken (pygments.css served in any case)"
| Reported by: | sheep | Owned by: | sheep |
|---|---|---|---|
| Priority: | Milestone: | ||
| Component: | Hatta Wiki | Version: | |
| Keywords: | Cc: |
Description
In the current devel version, I get pygments.css links in my wiki pages although I don't have pygments installed. It seems that the test for pygments in pygments_css is not really working as it does not seem to throw that exception but duly server pygments.css a few lines later:
def pygments_css(self, request): """Serve the default pygments style""" if pygments is None: raise werkzeug.exceptions.NotFound()
-- spaetz
Thank you for your report. I'm not sure I'm getting this right, you mean that you are not getting a 404 error when visiting the /+download/pygments.css url? Are you sure you don't have pygments? If so, how can Hatta generate the style? Does it fail and throw an exception? If so, could you paste that exception? It would be very helpful.
If you mean that you have a <link> tag in your header, then don't worry, that's expected, it doesn't break anything. -- Radomir Dopieralski
