Enter Key adding line breaks before sending

Hi, the default Enter Key to send the content of the message should not add an additional line break. This occurs when I go back to edit my message, before using the Enter Key to send the message. This cause an unsightly line break to my message. As this behaviour does not happen with a vast array of chat clients, I hope the same can be done with this as well. Thanks.