Skip to content

Multiline messages #208

@highflyer77

Description

@highflyer77

CAP multi-line
This is only an incomplete example of how it could work, syntax or method to impliment would vary.

would mark the new line (or whatever char. to be determined).
would mark end of message, same as irc now uses.

  • Raw message sent by user with multi-line support enabled:
<myNick>    This is my message I want to send. <lf>
            This would be line 2, I want to keep it intact with the first line. <lf>
            line 3 and end of the message. <crlf>
  • How message "is" shown with "no" multi-line support:

<myNick> This is my message I want to send. This would be line 2, I want to keep it intact with the first line. line 3 and end of the message.

  • How message should be shown with multi-line support:
<myNick>    This is my message I want to send.
            This would be line 2, I want to keep it intact with the first line.
            line 3 and end of the message.
<OtherNick> Yeah cool.
  • multi-line support would be usefull for pretty printing short code examples too.
<myNick>    #! /bin/bash
            echo "my cool script"
            if [ -n "$result" ] ; then
                echo "$result"
                exit 0
            else
                echo "File pattern not found"
                exit 1
            fi
<OtherNick> Nice code dude!
  • The benefit is: new lines are kept together without splitting up the message format.

I know some channels would have a limit or ban, but others could enjoy the multi-line support.
The 512 character limit would still apply to the message with multi-line support including the and characters

Please comment and let me know if this is feasible,
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions