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 diff
     1.1 --- a/s4-funcs.sh	Tue Dec 27 08:41:10 2016 +0859
     1.2 +++ b/s4-funcs.sh	Tue Dec 27 09:18:49 2016 +0859
     1.3 @@ -490,7 +490,8 @@
     1.4  	:cont
     1.5  	x;				# For non-"|" lines, check HoldSpace
     1.6  	/^./ {;				# If HoldSpace has "|" table elements
     1.7 -	  s|^|<table class="mini">|;	# Enclose whole elements like this:
     1.8 +	  s|^.|<table class="mini">|;	# Enclose whole elements like this:
     1.9 +			# . of ^. is workaround for FreeBSD sed
    1.10  	  # s|$|</table>|;		# <table class="mini">..\n..</table>
    1.11  	  p;				# Print whole "table" element
    1.12  	  s/.*//;			# Erase all when done.