yatex

diff newpage.rb @ 270:1b4e0acd0106

Include newpage.rb.
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 10 May 2012 11:10:13 +0900
parents e9c1e80f232e
children d69fd7b1ac4d
line diff
     1.1 --- a/newpage.rb	Wed Jul 07 22:31:15 2010 +0900
     1.2 +++ b/newpage.rb	Thu May 10 11:10:13 2012 +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