s4

changeset 295:56c2d2df5b7b

minitbl() detection rule modified from /^|[^|]/ to /^|.*|/
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 23 Aug 2016 10:54:21 +0859
parents 7f63a9424410
children da0a9c2380c1
files s4-funcs.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Tue Aug 23 10:48:23 2016 +0859
     1.2 +++ b/s4-funcs.sh	Tue Aug 23 10:54:21 2016 +0859
     1.3 @@ -459,7 +459,7 @@
     1.4  }
     1.5  minitbl() {
     1.6    sed -n '
     1.7 -	/^|[^|]/ {;			# If the line begin with "|"
     1.8 +	/^|.*|/ {;	# If the line begin with "|" and has 2 or more "|"
     1.9  	 s,|$,,;				# Remove trailing "|" first
    1.10  	 s,|\* *\([^|]*\) *,<th>\1</th>,g;	# "|*..." to "<th>...</th>"
    1.11  	 s,| *\([^|]*\) *,<td>\1</td>,g;	# "|..."  to "<td>...</td>"