diff --git a/newpage.rb b/newpage.rb index 55056c8..6d9db1e 100755 --- a/newpage.rb +++ b/newpage.rb @@ -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