From 239c3086cc1cbee651f9ec85609b8dd3ab8258d7 Mon Sep 17 00:00:00 2001 From: Forrest L Norvell Date: Thu, 30 Oct 2014 14:32:52 -0700 Subject: style tweaks --- lib/search.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/search.js') diff --git a/lib/search.js b/lib/search.js index d2ce9a3c0..68139a7ac 100644 --- a/lib/search.js +++ b/lib/search.js @@ -164,7 +164,7 @@ function prettify (data, args) { dat.keywords = dat.keywords.split(/[,\s]+/) } if (Array.isArray(dat.keywords)) { - dat.keywords = dat.keywords.join(' ') + dat.keywords = dat.keywords.join(" ") } // split author on whitespace or , @@ -172,7 +172,7 @@ function prettify (data, args) { dat.author = dat.author.split(/[,\s]+/) } if (Array.isArray(dat.author)) { - dat.author = dat.author.join(' ') + dat.author = dat.author.join(" ") } return dat }) @@ -194,7 +194,7 @@ function prettify (data, args) { include: columns , truncate: truncate , config: { - name: { maxWidth: 40, truncate: false, truncateMarker: '' } + name: { maxWidth: 40, truncate: false, truncateMarker: "" } , description: { maxWidth: 60 } , author: { maxWidth: 20 } , date: { maxWidth: 11 } @@ -260,9 +260,9 @@ function getMaxWidth() { function trimToMaxWidth(str) { var maxWidth = getMaxWidth() - return str.split('\n').map(function(line) { + return str.split("\n").map(function(line) { return line.slice(0, maxWidth) - }).join('\n') + }).join("\n") } function highlightSearchTerms(str, terms) { -- cgit v1.2.3