|
|
|
@ -142,7 +142,7 @@ class SpecFileParser
|
|
|
|
|
# puts "code content: #{$~[1]}"
|
|
|
|
|
# old version: str << "#{$~[1].lstrip(" ").rstrip(" ")}"
|
|
|
|
|
# new version does not change the line (better shell integration)
|
|
|
|
|
str << $~[1]
|
|
|
|
|
str << "#{$~[1]}\n"
|
|
|
|
|
else
|
|
|
|
|
content.unshift line
|
|
|
|
|
break
|
|
|
|
@ -196,7 +196,7 @@ class SpecFileParser
|
|
|
|
|
# puts "blank line or comment, still in a free text in a section"
|
|
|
|
|
when /#{indent}[ \t]+(.*)/
|
|
|
|
|
# puts "code content in section: #{$~[1]}"
|
|
|
|
|
str << $~[1]
|
|
|
|
|
str << "#{$~[1]}\n"
|
|
|
|
|
else
|
|
|
|
|
content.unshift line
|
|
|
|
|
break
|
|
|
|
|