[issue14883] html documentation does not show comments in code blocks

2012-05-22 Thread Alex Garel

New submission from Alex Garel :

Just under http://docs.python.org/library/doctest.html#doctest.REPORTING_FLAGS 
documentation speaks about how Doctest directives maybe expressed as special 
Python comments.

There are some example along with the narrative story, however comments which 
here are the important part, are not displayed in code snippet.

Looking at the sphinx source for this page : 
http://docs.python.org/_sources/library/doctest.txt the comments are present. 
Eg.

   >>> print range(20) #doctest: +NORMALIZE_WHITESPACE
   [0,   1,  2,  3,  4,  5,  6,  7,  8,  9,
   10,  11, 12, 13, 14, 15, 16, 17, 18, 19]

However in the generated html, they are not:

  print range
  (20) 
  [0,   1,  2,  3,  4,  5,  6,  7,  8,  9,


Note that this issue is not present in python 2.6.8 documentation 
http://docs.python.org/release/2.6.8/library/doctest.html#doctest.REPORTING_FLAGS
 and also 3.1.5 is ok.

It appears versions at 3.2.1 and 2.7.3

--
assignee: docs@python
components: Documentation
messages: 161351
nosy: alexgarel, docs@python
priority: normal
severity: normal
status: open
title: html documentation does not show comments in code blocks
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14883] html documentation does not show comments in code blocks

2012-05-22 Thread Ezio Melotti

Ezio Melotti  added the comment:

This is a duplicate of #12947.

--
nosy: +ezio.melotti
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> doctest directive examples in library/doctest.html lack the 
flags

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com