lib/docurium.rb in docurium-0.0.4 vs lib/docurium.rb in docurium-0.0.5
- old
+ new
@@ -4,11 +4,11 @@
require 'rocco'
require 'docurium/layout'
require 'pp'
class Docurium
- Version = VERSION = '0.0.4'
+ Version = VERSION = '0.0.5'
attr_accessor :branch, :output_dir, :data
def initialize(config_file)
raise "You need to specify a config file" if !config_file
@@ -378,9 +378,11 @@
current += 1
data[current] ||= {:comments => clean_comment(comment), :code => [code], :line => lineno}
else
if line =~ /\/\*/
in_comment = true
+ current += 1
+ elsif current == -1
current += 1
end
data[current] ||= {:comments => '', :code => [], :line => lineno}
data[current][:lineto] = lineno
if in_comment