changeset 4:b7e65c9caa23 draft

RCS-revision 1.5 date: 2004/01/02 14:48:43; author: yuuji; state: Exp; lines: +4 -4 head5chars fixed
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 02 Jan 2004 14:48:43 +0859
parents 354e09bb8ce1
children e26bc5d3563b
files after5.rb
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/after5.rb	Fri Jan 02 14:30:58 2004 +0859
+++ b/after5.rb	Fri Jan 02 14:48:43 2004 +0859
@@ -2,8 +2,8 @@
 #
 # Associative Scheduling Table - after5
 # (C)2003, 2004 by HIROSE Yuuji [yuuji@gentei.org]
-# $Id: after5.rb,v 1.4 2004/01/02 14:30:58 yuuji Exp $
-# Last modified Fri Jan  2 23:25:50 2004 on firestorm
+# $Id: after5.rb,v 1.5 2004/01/02 14:48:43 yuuji Exp $
+# Last modified Fri Jan  2 23:42:03 2004 on firestorm
 # See http://www.gentei.org/~yuuji/software/after5/
 # このスクリプトはEUCで保存してください。
 
@@ -1507,7 +1507,7 @@
 		if !s.empty?
 		  s.keys.sort.collect{|time|
 		    s[time].keys.sort.collect{|who|
-		      text = s[time][who]['sched'].gsub(/\n/, '')
+		      text = s[time][who]['sched']
 		      sprintf "%s%s",
 			time == @opt['alldaydir'] ? '' : time+":",
 			if personal
@@ -1517,7 +1517,7 @@
 			    if headline == 'whole'
 			      text
 			    elsif headline == 'head5char'
-			      text.sub(/(.{5}).*/, '\1')
+			      text.gsub(/\n/, '').sub(/(.{5}).*/, '\1')
 			    elsif headline == 'headline'
 			      text.split("\n")[0]
 			    end.to_s

yatex.org