From 7ec26f32dc87ce8c29287354909a189e326e7afc Mon Sep 17 00:00:00 2001
From: Shlee
and
edge case. (#40079)
---
app/lib/plain_text_formatter.rb | 2 +-
spec/lib/plain_text_formatter_spec.rb | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/lib/plain_text_formatter.rb b/app/lib/plain_text_formatter.rb
index e8ff79806f..65ae327a3d 100644
--- a/app/lib/plain_text_formatter.rb
+++ b/app/lib/plain_text_formatter.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
class PlainTextFormatter
- NEWLINE_TAGS_RE = %r{(
|
|
tags' do - let(:status) { Fabricate.build(:status, account: remote_account, text: '
Lorem
ipsum
') } + context 'when text contains mixed casetags' do + let(:status) { Fabricate.build(:status, account: remote_account, text: '
Lorem
ipsum
') } it 'inserts a newline' do expect(subject).to eq "Lorem\nipsum"