From d6392709f209e5b63cafd47d59ffa0c0182487ed Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 14 Sep 2010 22:21:00 +0200 Subject: Fixed number of lines in the head of the Xorg.0.log analysis Fixes #48 --- lib/rhbzpage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index 5e8291d..cb3f636 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -657,10 +657,11 @@ RHBugzillaPage.prototype.analyzeXorgLog = function analyzeXorgLog(attachID) { return (that.RE.soughtLines.test(line)); }); // Remove headers - if (results.length >= 3) { - results.splice(0, 3); + if (results.length >= 1) { + results.splice(0, 1); } if (results.length > 0) { + results.forEach(function(l) { preElem.innerHTML += l + "\n"; }); -- cgit