File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ replace_section()
75
75
local man_section=" $1 "
76
76
local md_section=" $2 "
77
77
local command=" $3 "
78
+ local extra_command=" $4 "
78
79
79
80
{
80
81
# Output until the specified section
@@ -101,7 +102,10 @@ replace_section()
101
102
/
102
103
s/^ \* /.IP "" 12\
103
104
/
105
+ # format urls
104
106
s/\[\([^]]*\)\](\([^)]*\))/\1 <\2>/
107
+
108
+ ' " $extra_command " '
105
109
p
106
110
}' README.md
107
111
@@ -118,8 +122,9 @@ replace_section 'GIT ISSUE COMMANDS' 'Use' 's/^\* `\([^`]*\)`: /.RE\
118
122
.PP\
119
123
\\fB\1\\fP\
120
124
.RS 4\
121
- /'
122
- replace_section FILES ' Internals'
125
+ /' ' s/^ \+//'
126
+
127
+ replace_section FILES ' Internals' ' ' ' s/^ \+//'
123
128
# shellcheck disable=SC2016
124
129
replace_section EXAMPLES ' Example session' ' /```/d;/^###/N;s/^### \(.*\)/.fi\
125
130
.ft R\
You can’t perform that action at this time.
0 commit comments