Skip to content

Conversation

@majiayu000
Copy link

Summary

This PR fixes #2330

Changes

  • doc/man_docs.go
  • doc/man_docs_test.go

Angle brackets in command usage, descriptions, and flag help text were
being stripped during man page generation because md2man interprets
them as HTML tags. This fix escapes < and > characters with backslashes
so they are preserved in the rendered man page output.

Fixes spf13#2330

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
@CLAassistant
Copy link

CLAassistant commented Dec 30, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the area/docs-generation Generation of docs via Cobra label Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs-generation Generation of docs via Cobra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Angle brackets stripped from manpage output

2 participants