Mercurial > hg-stable
comparison tests/test-highlight.out @ 6987:d09e813b21e3
highlight: only pygmentize for HTML mimetypes
For non-html mimetypes it doesn't make much sense. This also fixes the
issue that highlight unconditionally adds a <link/> tag for its CSS to
the template's header (which is pointless in text/plain output).
author | Rocco Rutte <pdmef@gmx.net> |
---|---|
date | Fri, 05 Sep 2008 10:39:57 +0200 |
parents | 6dcbe191a9b5 |
children | f29b674cc221 |
comparison
equal
deleted
inserted
replaced
6986:55c16f12908b | 6987:d09e813b21e3 |
---|---|
1 adding get-with-headers.py | 1 adding get-with-headers.py |
2 % hg serve | 2 % hg serve |
3 % hgweb filerevision | 3 % hgweb filerevision, html |
4 200 Script output follows | 4 200 Script output follows |
5 | 5 |
6 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 6 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
7 <html> | 7 <html> |
8 <head> | 8 <head> |
61 </div> | 61 </div> |
62 | 62 |
63 </body> | 63 </body> |
64 </html> | 64 </html> |
65 | 65 |
66 % hgweb fileannotate | 66 % hgweb fileannotate, html |
67 200 Script output follows | 67 200 Script output follows |
68 | 68 |
69 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 69 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
70 <html> | 70 <html> |
71 <head> | 71 <head> |
128 </div> | 128 </div> |
129 | 129 |
130 </body> | 130 </body> |
131 </html> | 131 </html> |
132 | 132 |
133 % hgweb fileannotate, raw | |
134 | |
135 % hgweb filerevision, raw | |
136 | |
133 % hgweb highlightcss friendly | 137 % hgweb highlightcss friendly |
134 200 Script output follows | 138 200 Script output follows |
135 | 139 |
136 /* pygments_style = friendly */ | 140 /* pygments_style = friendly */ |
137 | 141 |