mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-20 17:55:53 +02:00
Remove a extra line when quoting
This commit is contained in:
parent
3f942871ae
commit
79e410315c
1 changed files with 3 additions and 3 deletions
|
@ -995,14 +995,14 @@ exports.FullScreenEditorModule = exports.getModule = class FullScreenEditorModul
|
|||
const quoteMsgView = this.viewControllers.quoteBuilder.getView(1);
|
||||
const msgView = this.viewControllers.body.getView(1);
|
||||
|
||||
let quoteLines = quoteMsgView.getData();
|
||||
let quoteLines = quoteMsgView.getData().trim();
|
||||
|
||||
if(quoteLines.trim().length > 0) {
|
||||
if(quoteLines.length > 0) {
|
||||
if(this.replyIsAnsi) {
|
||||
const bodyMessageView = this.viewControllers.body.getView(1);
|
||||
quoteLines += `${ansi.normal()}${bodyMessageView.getSGRFor('text')}`;
|
||||
}
|
||||
msgView.addText(`${quoteLines}\n`);
|
||||
msgView.addText(`${quoteLines}\n\n`);
|
||||
}
|
||||
|
||||
quoteMsgView.setText('');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue