@@ -61,7 +61,7 @@ trait GistControllerBase extends ControllerBase {
6161 val files = getGistFiles(userName, repoName)
6262 val (fileName, source) = files.head
6363
64- (gist, GistInfo (fileName, source, files.length, getForkedCount(userName, repoName), getCommentCount(userName, repoName)))
64+ (gist, GistInfo (fileName, getLines( source) , files.length, getForkedCount(userName, repoName), getCommentCount(userName, repoName)))
6565 }
6666
6767 html.list(None , gists, page, page * Limit < count)
@@ -445,7 +445,7 @@ trait GistControllerBase extends ControllerBase {
445445 val repoName = gist.repositoryName
446446 val files = getGistFiles(userName, repoName, revision)
447447 val (fileName, source) = files.head
448- (gist, GistInfo (fileName, source, files.length, getForkedCount(userName, repoName), getCommentCount(userName, repoName)))
448+ (gist, GistInfo (fileName, getLines( source) , files.length, getForkedCount(userName, repoName), getCommentCount(userName, repoName)))
449449 }
450450
451451 val fullName = getAccountByUserName(userName).get.fullName
0 commit comments