[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[kagemai-users:0131] Re: 列の追加について



長嶋です。お世話になっています。

ご教授されたとおりに、編集したところ
うまくいきました。

ありがとうございます。

rubyも少しずつ勉強したいと思います。


> 福岡です。
> 
> Nobuyoshi Nagashima san wrote:
>  
> | いえ、前の内容はそのままで、「>」だけ付けたくないということ
> | なのです。
> 
> アドホックですが、 lib/kagemai/cgi/htmlhelper.rb を以下のように
> 変更してみてください。body 以外に '>' がつかなくなると思います。
> 
> Index: htmlhelper.rb
> ===================================================================
> RCS file: /home/repository/kagemai/lib/kagemai/cgi/htmlhelper.rb,v
> retrieving revision 1.48.2.2
> diff -u -r1.48.2.2 htmlhelper.rb
> --- htmlhelper.rb       1 Jun 2003 05:52:38 -0000       1.48.2.2
> +++ htmlhelper.rb       15 Jun 2003 20:30:51 -0000
> @@ -428,7 +428,8 @@
>        field('textarea', attr) {
>          v = value.to_s
>          if cite
> -          v = v.empty? ? '' : folding.render(nil, v).cite
> +          prefix = @attr['id'] == 'body' ? '> ' : ''
> +          v = v.empty? ? '' : folding.render(nil, v).cite(prefix)
>          end
>          v.escape_h
>        }
> 
> -- 
> 福岡ともゆき <fukuoka@xxxxxxxxxxxxx>
> http://www.daifukuya.com/
>