s4

changeset 250:b60ed19405c2

Allow iframe(w=400,h=300 fixed) in article and fix open td/tr.
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 17 Jul 2016 11:25:55 +0859
parents 6bb5513efb8e
children 9e8e43ed3c11
files s4-blog.sh s4-funcs.sh
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-blog.sh	Sat Jul 16 11:42:15 2016 +0859
     1.2 +++ b/s4-blog.sh	Sun Jul 17 11:25:55 2016 +0859
     1.3 @@ -243,6 +243,7 @@
     1.4  	    ;;
     1.5  	esac
     1.6        done
     1.7 +      echo "</td></tr>"
     1.8      done
     1.9    fi
    1.10  
     2.1 --- a/s4-funcs.sh	Sat Jul 16 11:42:15 2016 +0859
     2.2 +++ b/s4-funcs.sh	Sun Jul 17 11:25:55 2016 +0859
     2.3 @@ -437,7 +437,9 @@
     2.4    echo  "\">`gecos $1`</a>"
     2.5  }
     2.6  hreflink() {
     2.7 -  sed -e "s|^href=\([-A-Za-z0-9,.:;/~_%#&+?=]*\)|<a &>\1</a>|"
     2.8 +  _hrefptn="[-A-Za-z0-9,.:;/~_%#&+?=]*"
     2.9 +  sed -e "s|^href=\($_hrefptn\)|<a &>\1</a>|" \
    2.10 +      -e "s|^iframe=\($_hrefptn\)|<iframe width=\"400px\" height=\"300px\" src=\"\1\"></iframe>|"
    2.11  }
    2.12  acclog() (
    2.13    # $1=table, $2=rowid