# HG changeset patch # User yuuji@gentei.org # Date 1283757515 -32400 # Node ID f8420028f0fbb996217d348cb249ad9442da8e2a # Parent e9c1e80f232e03c28df00363f21199049b7c455c Fix path to css. diff -r e9c1e80f232e -r f8420028f0fb newpage.rb --- a/newpage.rb Wed Jul 07 22:31:15 2010 +0900 +++ b/newpage.rb Mon Sep 06 16:18:35 2010 +0900 @@ -2,7 +2,7 @@ # THIS is very very tentative. Insufficient examination of function. # Create new HTML file referring other HTML file in the same directory. # (C)2010 by HIROSE Yuuji [yuuji@yatex.org] -# Last modified Wed Jul 7 22:30:25 2010 on firestorm +# Last modified Mon Sep 6 16:16:33 2010 on firestorm # $Id$ # http://www.yatex.org # Example: @@ -85,7 +85,7 @@ html = input.readlines.join html.sub!(%r|^|i, sprintf("

%s

\n", name)) if !html.gsub!("__CSSFILE__", cssfile) - html.gsub!(/href=(['\"])(.*\.css)\1/, 'href="\1"') + html.gsub!(/href=(['\"])(.*\.css)\1/, 'href="'+cssdir+'\2"') end html.gsub!("__TITLE__", name) out.print html