diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-12-27 00:51:30 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-12-27 00:51:30 (EST) |
commit | b37e0864c12884f04104751225680bd696f52144 (patch) | |
tree | 7601fd05f8772792c5a593867d65ce699b7264a3 | |
parent | 3378cca582b82bfdac2fdb2e104093f6abc46d3a (diff) |
tools/shman.sh: Drop markdown-like font markup
-rw-r--r-- | tools/shman.sh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/shman.sh b/tools/shman.sh index 7cd8140..fe7c280 100644 --- a/tools/shman.sh +++ b/tools/shman.sh @@ -67,17 +67,6 @@ get_mtime() printf '%d-%02d-%02d' ${y} ${m} ${d} } -format_fonts() -{ - local str="${1}" - shift 1 - - printf '%s\n' "${str}" | sed ' - s/[*][*]\(.*\)[*][*]/\\fB\1\\fP/g; - s/_\(.*\)_/\\fI\1\\fP/g; - ' -} - gen_doc_func() { local sym="${1}" @@ -93,15 +82,12 @@ gen_doc_func() while read -r cmd args; do case "${cmd}" in 'brief') - args="$(format_fonts "${args}")" sect_name="${sect_name} - ${args}" ;; 'details') - args="$(format_fonts "${args}")" sect_desc=".SH DESCRIPTION${LF}${args}" ;; 'return') - args="$(format_fonts "${args}")" sect_ret=".SH RETURN VALUE${LF}${args}" ;; esac |