From 98378969dae552c0c190eea922415d35eb22ae1e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 21 Oct 2023 23:47:52 -0400 Subject: Added contrast for quote speaker names --- app/helpers/quotes_helper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/helpers/quotes_helper.rb') diff --git a/app/helpers/quotes_helper.rb b/app/helpers/quotes_helper.rb index 3c2acf9..c0753e0 100644 --- a/app/helpers/quotes_helper.rb +++ b/app/helpers/quotes_helper.rb @@ -2,6 +2,7 @@ module QuotesHelper def quote_format(text) text = text ? text.to_str : '' text = text.dup if text.frozen? + text.gsub!(/^([\(\[][^\]\)]*[\]\)] )?([^:\n]*): /, "\\1\\2: ") text.gsub!(/\r\n?/, "\n") # \r\n and \r -> \n text.gsub!(/\n/, '
') # 1 newline -> br text = sanitize(text) -- cgit 1.4.1