Mercurial > hgrepos > hgweb.cgi > 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 wrap: on
line diff
--- a/s4-funcs.sh Tue Aug 23 10:48:23 2016 +0859 +++ b/s4-funcs.sh Tue Aug 23 10:54:21 2016 +0859 @@ -459,7 +459,7 @@ } minitbl() { sed -n ' - /^|[^|]/ {; # If the line begin with "|" + /^|.*|/ {; # If the line begin with "|" and has 2 or more "|" s,|$,,; # Remove trailing "|" first s,|\* *\([^|]*\) *,<th>\1</th>,g; # "|*..." to "<th>...</th>" s,| *\([^|]*\) *,<td>\1</td>,g; # "|..." to "<td>...</td>"