Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix double newline no longer being contained

Oliver Günthera2b7fbb39536
diff --git a/spec/features/wysiwyg/macros/code_block_macro_spec.rb b/spec/features/wysiwyg/macros/code_block_macro_spec.rb
index d89c8fc5d24..ada8f3d9039 100644
--- a/spec/features/wysiwyg/macros/code_block_macro_spec.rb
+++ b/spec/features/wysiwyg/macros/code_block_macro_spec.rb
@@ -44,7 +44,7 @@ describe 'Wysiwyg code block macro', type: :feature, js: true do
let(:expected) {
<<~EXPECTED
```ruby
- #{snippet}
+ #{snippet.strip}
```
EXPECTED
}