diff options
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/parser/ruby.rb | 2 | ||||
-rw-r--r-- | lib/rdoc/stats.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb index 1a03b1c808..7550508b81 100644 --- a/lib/rdoc/parser/ruby.rb +++ b/lib/rdoc/parser/ruby.rb @@ -417,7 +417,7 @@ class RDoc::Parser::Ruby < RDoc::Parser # Adds useful info about the parser to +message+ def make_message message - prefix = "\n#{@file_name}:" + prefix = "#{@file_name}:" prefix << "#{@scanner.line_no}:#{@scanner.char_no}:" if @scanner diff --git a/lib/rdoc/stats.rb b/lib/rdoc/stats.rb index 8f51cbedcc..82e0afdf5d 100644 --- a/lib/rdoc/stats.rb +++ b/lib/rdoc/stats.rb @@ -190,10 +190,10 @@ class RDoc::Stats line << (" " * padding) if padding > 0 $stdout.print("#{line}\r") - $stdout.flush else - puts "#{progress_bar} #{filename}" + $stdout.puts "#{progress_bar} #{filename}" end + $stdout.flush end def done_adding # :nodoc: |