Make sure signatures start a new paragraph and that existing signatures are detected correctly.

staging
multiple creatures 2019-04-27 14:17:25 -05:00
parent 4644a6245f
commit d339d2bbb4
1 changed files with 2 additions and 2 deletions

View File

@ -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]