hanna-bootstrap 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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|
|