[Bbs2ch-cvs 436] [418] DAT の最後の空行をカウントしていたのを削除

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 3月 16日 (日) 18:21:02 JST


Revision: 418
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=418
Author:   flyson
Date:     2008-03-16 18:21:02 +0900 (Sun, 16 Mar 2008)

Log Message:
-----------
DAT の最後の空行をカウントしていたのを削除

Modified Paths:
--------------
    trunk/bbs2chreader/chrome/content/bbs2chreader/server/thread.jsm


-------------- next part --------------
Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/server/thread.jsm
===================================================================
--- trunk/bbs2chreader/chrome/content/bbs2chreader/server/thread.jsm	2008-03-15 18:40:34 UTC (rev 417)
+++ trunk/bbs2chreader/chrome/content/bbs2chreader/server/thread.jsm	2008-03-16 09:21:02 UTC (rev 418)
@@ -243,6 +243,7 @@
 			// Žæ“¾Ï‚݃ƒO‚Ì‘—M
 		if(this.dat.datFile.exists()){
 			var datLines = this.dat.readContent().split("\n");
+			datLines.pop(); // ÅŒã‚Ì‹ós‚ðíœ
 
 			this._logLineCount = datLines.length;
 
@@ -250,8 +251,7 @@
 				this._headerResponded = true;
 				var header = this.converter.getHeader(this.dat.title);
 				this.write(header);
-				this.write(this.datLineParse(datLines[this.optionsOnes-1],
-								this.optionsOnes, false));
+				this.write(this.datLineParse(datLines[this.optionsOnes-1], this.optionsOnes, false));
 				this.write(this.converter.getFooter("log_pickup_mode"));
 				this.close();
 				return;


bbs2ch-cvs メーリングリストの案内
Back to archive index