Make single newlines cause a <br> by default
This should match what people expect from a chat application much better. The biggest reason not to do this, is because some people might paste markdown documents. For those people there is now a /cmark command, which disables most of our extensions to cmark, including the newline behaviour. There is a long discussion on the Fediverse and on Github linked below. Mastodon https://fosstodon.org/@deepbluev7/109771668066978726 fixes #757
This commit is contained in:
parent
9f529075f0
commit
0c3d46795b
8 changed files with 48 additions and 15 deletions
|
|
@ -18,11 +18,12 @@ class FetchUsersFromDirectoryJob final : public QObject
|
|||
Q_OBJECT
|
||||
public:
|
||||
explicit FetchUsersFromDirectoryJob(QObject *p = nullptr)
|
||||
: QObject(p)
|
||||
: QObject(p)
|
||||
{
|
||||
}
|
||||
signals:
|
||||
void fetchedSearchResults(std::vector<mtx::responses::User> results, const std::string &searchTerm);
|
||||
void
|
||||
fetchedSearchResults(std::vector<mtx::responses::User> results, const std::string &searchTerm);
|
||||
};
|
||||
class UserDirectoryModel : public QAbstractListModel
|
||||
{
|
||||
|
|
@ -65,5 +66,6 @@ public slots:
|
|||
bool searchingUsers() const { return searchingUsers_; }
|
||||
|
||||
private slots:
|
||||
void displaySearchResults(std::vector<mtx::responses::User> results, const std::string &searchTerm);
|
||||
void
|
||||
displaySearchResults(std::vector<mtx::responses::User> results, const std::string &searchTerm);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue