Do not add ";" at the end of each code-block line.

master
Philippe PITTOLI 2019-08-22 01:49:44 +02:00
parent 2694ecdae1
commit 157d6db909
1 changed files with 5 additions and 5 deletions

View File

@ -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