dynarex 1.1.23 → 1.1.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex.rb +2 -1
- metadata +1 -1
data/lib/dynarex.rb
CHANGED
@@ -358,7 +358,8 @@ EOF
|
|
358
358
|
i = @doc.root.xpath('max(records/*/attribute::id)').to_i
|
359
359
|
|
360
360
|
raw_summary = schema[/\[([^\]]+)/,1]
|
361
|
-
raw_lines = buffer.
|
361
|
+
raw_lines = buffer.gsub(/^\s*#[^\n]+/,'').gsub(/\n\n/,"\n")\
|
362
|
+
.strip.split(/\r?\n|\r(?!\n)/)
|
362
363
|
|
363
364
|
if raw_summary then
|
364
365
|
a_summary = raw_summary.split(',').map(&:strip)
|