about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-27 14:17:25 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commitd339d2bbb4aab43d810064bc12bdd0edaebd7263 (patch)
tree9baaba21bbd8e57e9560be1237421eae72b086d3 /app
parent4644a6245fb67d7f764eebfae29fff3a6a05ded8 (diff)
Make sure signatures start a new paragraph and that existing signatures are detected correctly.
Diffstat (limited to 'app')
-rw-r--r--app/lib/bangtags.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index 82049f56b..6f2f03d30 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -429,9 +429,9 @@ class Bangtags
         name = @vars['_they:are']
         next if name.blank?
         description = @vars["_they:are:#{name}"]
-        next if description.blank? || @chunks.last.starts_with?('—')
+        next if description.blank? || @chunks.last(5).any? {|c| c.include?('—')}
         status.local_only = true if Status::LOCAL_ONLY_TOKENS.match?(@chunks.last)
-        @chunks << "\n\u200c\n[right]— #{description}\u200c[/right]"
+        @chunks << "\n\n[right]— #{description}\u200c[/right]"
       when 'media'
         media_idx = post_cmd[1]
         media_cmd = post_cmd[2]