dynarex 1.1.23 → 1.1.24
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/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)
|