Skip to content

Manpage formatting tweaks#132338

Open
stefanor wants to merge 2 commits into
python:mainfrom
stefanor:manpage-lint
Open

Manpage formatting tweaks#132338
stefanor wants to merge 2 commits into
python:mainfrom
stefanor:manpage-lint

Conversation

@stefanor
Copy link
Copy Markdown
Contributor

Following on from GH-132291 this is the second part of the patch from https://bugs.debian.org/1101406

This tweaks the formatting of a few bits of the manpage.

For those who don't speak roff, here are some rendering diffs: https://gist.github.com/stefanor/da32324f80e36f27819ba22ae0ab2098

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 23, 2026
Following on from pythonGH-132291 this is the second part of the patch from
https://bugs.debian.org/1101406

This tweaks the formatting of a few bits of the manpage.
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label May 14, 2026
Comment thread Misc/python.man Outdated
Comment thread Misc/python.man
Comment on lines +258 to +266
.nf
\-Wdefault # Warn once per call location
\-Werror # Convert to exceptions
\-Walways # Warn every time
\-Wall # Same as \-Walways
\-Wmodule # Warn once per calling module
\-Wonce # Warn once per Python process
\-Wignore # Never warn
.fi
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't show up in the render diffs; what does it do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporarily turns off "line filling", for a code block.

The practical effect here is that if it wraps a long line, it wraps all the way to the left margin rather than being indented to the same level. I'm not 100% sold on this being an improvement, but I have seen it described as being useful for code blocks.

Comment thread Misc/python.man
Comment on lines +588 to +589
The integer must be a decimal number in the range [0,4\|294\|967\|295].
Specifying the value 0 will disable hash randomization.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also doesn't show up in the diffs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are "thin-spaces". Only visible in renderings like PDF:
image

@stefanor
Copy link
Copy Markdown
Contributor Author

Updated the gist with render diffs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants