From a79b36b55972e2153b088966066ba9f5c2404707 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Thu, 22 Aug 2019 02:08:56 +0200 Subject: [PATCH] Adding "\n" on code block lines. --- shard.yml | 2 +- src/specfileparser.cr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shard.yml b/shard.yml index 8e9bbfd..a509256 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: specfileparser -version: 0.4.3 +version: 0.4.4 authors: - Philippe Pittoli diff --git a/src/specfileparser.cr b/src/specfileparser.cr index 0036b86..9cd2c20 100644 --- a/src/specfileparser.cr +++ b/src/specfileparser.cr @@ -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