From 6e218d9e5648264756b33a4b66aea1f44e8f1c2a Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 19 Feb 2020 15:51:41 -0600 Subject: do not strip newlines between chunks without bangtag tokens --- app/lib/bangtags.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/lib') diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 900ba9e1c..af9649662 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -106,7 +106,10 @@ class Bangtags next end - next unless chunk.starts_with?('#!') + unless chunk.starts_with?('#!') + @chunks << chunk + next + end orig_chunk = chunk chunk.sub!(/(\\:)?+:+?!#\Z/, '\1') -- cgit