Merge pull request #269 from skitt/whatis

Fix whatis info in manpage
This commit is contained in:
John Kerl 2019-09-13 07:41:45 -04:00 committed by GitHub
commit c26232db23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ def main
print make_top
print make_section('NAME', [
"Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV and tabular JSON."
"miller \\\- like awk, sed, cut, join, and sort for name-indexed data such as CSV and tabular JSON."
])
print make_section('SYNOPSIS', [
@ -224,7 +224,7 @@ def groff_encode(line)
#line = line.gsub(/"/, '\(dq')
#line = line.gsub(/\./, '\&')
#line = line.gsub(/-/, '\-')
line = line.gsub(/\\/, '\e')
line = line.gsub(/\\([^-])/, '\e\1')
line = line.gsub(/^\./){'\&.'}
line
end

View file

@ -26,7 +26,7 @@
.\" -----------------------------------------------------------------
.SH "NAME"
.sp
Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV and tabular JSON.
miller \- like awk, sed, cut, join, and sort for name-indexed data such as CSV and tabular JSON.
.SH "SYNOPSIS"
.sp
Usage: mlr [I/O options] {verb} [verb-dependent options ...] {zero or more file names}