Daniel Brötzmann pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/gtk/menus.py
    ... ... @@ -681,7 +681,13 @@ def get_chat_row_menu(contact: types.ChatContactT,
    681 681
     
    
    682 682
         format_string = app.settings.get('date_time_format')
    
    683 683
         timestamp_formatted = timestamp.strftime(format_string)
    
    684
    -    copy_text = f'{timestamp_formatted} - {name}: {text}'
    
    684
    +
    
    685
    +    copy_text = f'{timestamp_formatted} - {name}: '
    
    686
    +    if text.startswith(('```', '> ')):
    
    687
    +        # Prepend a line break in order to keep code block/quotes rendering
    
    688
    +        copy_text += '\n'
    
    689
    +    copy_text += text
    
    690
    +
    
    685 691
         menu_items.append(
    
    686 692
             (p_('Message row action', 'Copy'),
    
    687 693
              'win.copy-message',