We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6355f3d commit d572a57Copy full SHA for d572a57
1 file changed
examples/generate_example.sh
@@ -97,18 +97,7 @@ Worked Example
97
98
EOF
99
100
-awk '
101
- /^-{3,}/ {
102
- dash_count = length($0)
103
- tildes = ""; #
104
- for (i = 1; i <= dash_count; i++) {
105
- tildes = tildes "~"
106
- }
107
- print tildes
108
- next
109
110
- { print }
111
-' "${example_dir}/${rst_file}" >> "${example_dir}/${rst_ipynb_file}"
+sed '/^----*/ { s/-/~/g; }' "${example_dir}/${rst_file}" >> "${example_dir}/${rst_ipynb_file}"
112
113
# move the required files over to the doc directory
114
cp "${example_dir}/${rst_ipynb_file}" "${target_dir}/"
0 commit comments