yatex
changeset 140:f8420028f0fb dev
Fix path to css.
author | yuuji@gentei.org |
---|---|
date | Mon, 06 Sep 2010 16:18:35 +0900 |
parents | e9c1e80f232e |
children | 13a717bee066 |
files | newpage.rb |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/newpage.rb Wed Jul 07 22:31:15 2010 +0900 1.2 +++ b/newpage.rb Mon Sep 06 16:18:35 2010 +0900 1.3 @@ -2,7 +2,7 @@ 1.4 # THIS is very very tentative. Insufficient examination of function. 1.5 # Create new HTML file referring other HTML file in the same directory. 1.6 # (C)2010 by HIROSE Yuuji [yuuji@yatex.org] 1.7 -# Last modified Wed Jul 7 22:30:25 2010 on firestorm 1.8 +# Last modified Mon Sep 6 16:16:33 2010 on firestorm 1.9 # $Id$ 1.10 # http://www.yatex.org 1.11 # Example: 1.12 @@ -85,7 +85,7 @@ 1.13 html = input.readlines.join 1.14 html.sub!(%r|^<h1.*<\/h1>|i, sprintf("<h1>%s</h1>\n", name)) 1.15 if !html.gsub!("__CSSFILE__", cssfile) 1.16 - html.gsub!(/href=(['\"])(.*\.css)\1/, 'href="\1"') 1.17 + html.gsub!(/href=(['\"])(.*\.css)\1/, 'href="'+cssdir+'\2"') 1.18 end 1.19 html.gsub!("__TITLE__", name) 1.20 out.print html