Do not add ";" at the end of each code-block line.
This commit is contained in:
parent
2694ecdae1
commit
157d6db909
@ -140,7 +140,9 @@ class SpecFileParser
|
||||
# puts "blank line or comment, still in a code block"
|
||||
when /^[ \t]+(.*)/
|
||||
# puts "code content: #{$~[1]}"
|
||||
str << "#{$~[1].lstrip(" ").rstrip(" ")};"
|
||||
# old version: str << "#{$~[1].lstrip(" ").rstrip(" ")}"
|
||||
# new version does not change the line (better shell integration)
|
||||
str << $~[1]
|
||||
else
|
||||
content.unshift line
|
||||
break
|
||||
@ -193,10 +195,8 @@ class SpecFileParser
|
||||
when /^[ \t]*#.*?$/
|
||||
# puts "blank line or comment, still in a free text in a section"
|
||||
when /#{indent}[ \t]+(.*)/
|
||||
v = $~[1].lstrip(" ").rstrip(" ")
|
||||
# puts "freetext content in section: #{v}"
|
||||
# puts "code content: #{$~[1]}"
|
||||
str << "#{v};"
|
||||
# puts "code content in section: #{$~[1]}"
|
||||
str << $~[1]
|
||||
else
|
||||
content.unshift line
|
||||
break
|
||||
|
Reference in New Issue
Block a user