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 wrap: on
line diff
--- a/s4-blog.sh	Sat Jul 16 11:42:15 2016 +0859
+++ b/s4-blog.sh	Sun Jul 17 11:25:55 2016 +0859
@@ -243,6 +243,7 @@
 	    ;;
 	esac
       done
+      echo "</td></tr>"
     done
   fi
 
--- a/s4-funcs.sh	Sat Jul 16 11:42:15 2016 +0859
+++ b/s4-funcs.sh	Sun Jul 17 11:25:55 2016 +0859
@@ -437,7 +437,9 @@
   echo  "\">`gecos $1`</a>"
 }
 hreflink() {
-  sed -e "s|^href=\([-A-Za-z0-9,.:;/~_%#&+?=]*\)|<a &>\1</a>|"
+  _hrefptn="[-A-Za-z0-9,.:;/~_%#&+?=]*"
+  sed -e "s|^href=\($_hrefptn\)|<a &>\1</a>|" \
+      -e "s|^iframe=\($_hrefptn\)|<iframe width=\"400px\" height=\"300px\" src=\"\1\"></iframe>|"
 }
 acclog() (
   # $1=table, $2=rowid

yatex.org