Use Jekyll::Stevenson#formatted_topic for printing messages

Beats trying to line them up yourself. :-)
This commit is contained in:
Matt Rogers 2013-05-14 22:04:34 -05:00
parent ff600bfcd9
commit 98aff03595
1 changed files with 4 additions and 3 deletions

View File

@ -28,13 +28,13 @@ module Jekyll
def build_index def build_index
self.class.lsi ||= begin self.class.lsi ||= begin
lsi = Classifier::LSI.new(:auto_rebuild => false) lsi = Classifier::LSI.new(:auto_rebuild => false)
display("\n Populating LSI... ") display("Populating LSI...")
self.site.posts.each do |x| self.site.posts.each do |x|
lsi.add_item(x) lsi.add_item(x)
end end
display("\nRebuilding index... ") display("Rebuilding index...")
lsi.build_index lsi.build_index
display("") display("")
lsi lsi
@ -50,7 +50,8 @@ module Jekyll
end end
def display(output) def display(output)
$stdout.print(output) $stdout.print("\n")
$stdout.print(Jekyll::Stevenson.formatted_topic(output))
$stdout.flush $stdout.flush
end end
end end