[issue5925] Odd formatting differences of keywords in reference
New submission from Mitchell Model m...@acm.org: In the section at reference/lexical_analysis.html#keywords of the HTML documentation some of the keywords are formatted differently from the majority. In the HTML markup most of the keywords have CSS class 'k', but others have 'n', 'nc', 'kn', 'nn', or 'ow'. I don't see any pattern to which keywords are formatted which way, so I believe this should be corrected. Or, if the differences are intentional they should be documented. [Just trying to help clean up the doc -- I realize how trivial this is.] -- assignee: georg.brandl components: Documentation messages: 87153 nosy: MLModel, georg.brandl severity: normal status: open title: Odd formatting differences of keywords in reference versions: Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5925] Odd formatting differences of keywords in reference
R. David Murray rdmur...@bitdance.com added the comment: Whare are you seeing this? The online documentation doesn't use css class names like the ones you mention as far as I can see. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5925] Odd formatting differences of keywords in reference
R. David Murray rdmur...@bitdance.com added the comment: Woops, I was looking at the wrong page. I see it now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5925] Odd formatting differences of keywords in reference
R. David Murray rdmur...@bitdance.com added the comment: It looks like the py3 table is being colorized incorrectly. The rst source code looks the same, so it must be some sort of difference in configuration. I think I'll leave it to Georg to sort out :) -- stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5925] Odd formatting differences of keywords in reference
R. David Murray rdmur...@bitdance.com added the comment: A thought: there are additional keywords words in the Py3 table. Perhaps Sphinx is using a heuristic to detect example blocks that are python source code, and this one does not qualify in the py2 docs but does qualify in the p3 docs. In the py2 docs the table is not colorized at all. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5925] Odd formatting differences of keywords in reference
Georg Brandl ge...@python.org added the comment: Pygments' cleverness is detrimental here. It highlights module, class and function names specially, therefore the identifiers after class and import are differently colored. I've made the table non-highlighted in 2 and 3, r72288. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com