Commit fdb65202 authored by Stephen M. Coakley's avatar Stephen M. Coakley

Compatibility with BSD sed

parent dc211893
...@@ -24,8 +24,8 @@ function omf.cli.help ...@@ -24,8 +24,8 @@ function omf.cli.help
s/<<[^,]*,\([^>]*\)>>/\1/g s/<<[^,]*,\([^>]*\)>>/\1/g
# Definition lists. # Definition lists.
s/^\(\S.*\)::\(..*\)/\1\2/g s/^\([^[:space:]].*\)::\(..*\)/\1\2/g
s/^\(\S.*\)::/$b\1$r/g s/^\([^[:space:]].*\)::/$b\1$r/g
# Nice bullets for unordered lists. # Nice bullets for unordered lists.
s/^[*-] /· /g s/^[*-] /· /g
...@@ -47,7 +47,7 @@ function omf.cli.help ...@@ -47,7 +47,7 @@ function omf.cli.help
s/_\([^_]*\)_/$u\1$r/g s/_\([^_]*\)_/$u\1$r/g
# Underline links. # Underline links.
s/\w\w*:\S\S*/$u&$r/g s/[[:alnum:]_][[:alnum:]_]*:[^[:space:]][^[:space:]]*/$u&$r/g
# Underline variable names in angle brackets. # Underline variable names in angle brackets.
s/<[^>]*>/$u&$r/g s/<[^>]*>/$u&$r/g
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment