From 98aff03595130eea9b4e37e2de65515156b19bad Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Tue, 14 May 2013 22:04:34 -0500 Subject: [PATCH] Use Jekyll::Stevenson#formatted_topic for printing messages Beats trying to line them up yourself. :-) --- lib/jekyll/related_posts.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/jekyll/related_posts.rb b/lib/jekyll/related_posts.rb index ab13a968..8de5dc78 100644 --- a/lib/jekyll/related_posts.rb +++ b/lib/jekyll/related_posts.rb @@ -28,13 +28,13 @@ module Jekyll def build_index self.class.lsi ||= begin lsi = Classifier::LSI.new(:auto_rebuild => false) - display("\n Populating LSI... ") + display("Populating LSI...") self.site.posts.each do |x| lsi.add_item(x) end - display("\nRebuilding index... ") + display("Rebuilding index...") lsi.build_index display("") lsi @@ -50,7 +50,8 @@ module Jekyll end def display(output) - $stdout.print(output) + $stdout.print("\n") + $stdout.print(Jekyll::Stevenson.formatted_topic(output)) $stdout.flush end end