Use Jekyll::Stevenson#formatted_topic for printing messages
Beats trying to line them up yourself. :-)
This commit is contained in:
parent
ff600bfcd9
commit
98aff03595
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue