This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Last line of argparse code samples can not be read on Windows
Type: Stage:
Components: Documentation Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: blep, docs@python, georg.brandl
Priority: normal Keywords:

Created on 2011-01-09 08:59 by blep, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
argparse-codesample-unreadable.png blep, 2011-01-09 08:59 Illustrate unreadable last line
Messages (2)
msg125832 - (view) Author: Baptiste Lepilleur (blep) Date: 2011-01-09 08:59
When the code samples from the CHM documentation are displayed, if the lines are too long, a scroll bar is added at the bottom which prevents reading the last line of the code sample.

Usually this can be worked-around by making the windows larger, but some examples in the documentation of the argparse are so wide that even in full screen, the window is not wide enough.

I attached a screen capture to illustrate the issue (taken from section 14.4.3.3. nargs of Python 3.2b2). This is even worth with one-liner code sample when not browsing full screen (e.g. with the index on the side).

Environment: Windows XP SP3, resolution: 1024x768, python 3.2b2.

I don't know if it is possible, but adding a blank line at the end of code sample that are more than 80 characters wide would likely work-around the issue.
msg125835 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2011-01-09 09:18
I've shortened the examples in r87890.  I'll also investigate why the scrollbar isn't shown below the code.
History
Date User Action Args
2022-04-11 14:57:11adminsetgithub: 55079
2011-01-09 09:18:54georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg125835

resolution: fixed
2011-01-09 08:59:43blepcreate