hanna-bootstrap 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hanna-bootstrap.rb +2 -2
- data/lib/hanna-bootstrap/version.rb +1 -1
- metadata +1 -1
data/lib/hanna-bootstrap.rb
CHANGED
@@ -376,10 +376,10 @@ class RDoc::Generator::Bootstrap
|
|
376
376
|
indent = src.length
|
377
377
|
lines = src.lines.to_a
|
378
378
|
start = 0
|
379
|
-
line_numbers =
|
379
|
+
line_numbers = false
|
380
380
|
if src =~ /\A.*#\ *File/i # remove '# File' comment
|
381
381
|
line = lines.shift
|
382
|
-
line_numbers =
|
382
|
+
line_numbers = @options.line_numbers if line.sub!(/\A(.*)(, line (\d+))/, '\1')
|
383
383
|
start = $3.to_i
|
384
384
|
end
|
385
385
|
lines.each do |line|
|