Skip to content

Commit

Permalink
scripts/docsurgeon: Fix document header for section 1 man pages
Browse files Browse the repository at this point in the history
Document header generation for section 1 man pages (cxl-foo commands) was
missing the section number in parenthesis, i.e. it would generate:

  cxl-foo
  =======

instead of:

  cxl-foo(1)
  ==========

resulting in asciidoc(tor) warnings.

Signed-off-by: Vishal Verma <[email protected]>
  • Loading branch information
stellarhopper committed Mar 4, 2022
1 parent 7564aee commit 6332051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/docsurgeon
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ gen_cli()

# Start template generation
printf "%s\n" "$copyright_cli" > "$tmp"
gen_header "$name" >> "$tmp"
gen_header "$name($_arg_section)" >> "$tmp"
gen_section_name "$name" >> "$tmp"
gen_section_synopsis_1 "$name" >> "$tmp"
gen_section "DESCRIPTION" >> "$tmp"
Expand Down

0 comments on commit 6332051

Please sign in to comment.