Mercurial > hgrepos > hgweb.cgi > s4
changeset 398:f50d4df067b5
Workaround regexp fix for FreeBSD sed
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 27 Dec 2016 09:18:49 +0859 |
parents | e9e8b4d40220 |
children | db25589d864c |
files | s4-funcs.sh |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Tue Dec 27 08:41:10 2016 +0859 +++ b/s4-funcs.sh Tue Dec 27 09:18:49 2016 +0859 @@ -490,7 +490,8 @@ :cont x; # For non-"|" lines, check HoldSpace /^./ {; # If HoldSpace has "|" table elements - s|^|<table class="mini">|; # Enclose whole elements like this: + s|^.|<table class="mini">|; # Enclose whole elements like this: + # . of ^. is workaround for FreeBSD sed # s|$|</table>|; # <table class="mini">..\n..</table> p; # Print whole "table" element s/.*//; # Erase all when done.