Project

General

Profile

Feature #35677 » 0001-preserve-leading-spaces-when-using-the-Quote-functio.patch

Jens Krämer, 2021-08-03 12:53

View differences:

public/javascripts/jstoolbar/markdown.js
wiki: function() {
this.encloseLineSelection('','',function(str) {
str = str.replace(/\r/g,'');
return str.replace(/(\n|^) *([^\n]*)/g,"$1> $2");
return str.replace(/(\n|^)( *)([^\n]*)/g,"$1> $2$3");
});
}
}
......
wiki: function() {
this.encloseLineSelection('','',function(str) {
str = str.replace(/\r/g,'');
return str.replace(/(\n|^) *[>]? *([^\n]*)/g,"$1$2");
return str.replace(/(\n|^) *(> ?)?( *)([^\n]*)/g,"$1$3$4");
});
}
}
public/javascripts/jstoolbar/textile.js
wiki: function() {
this.encloseLineSelection('','',function(str) {
str = str.replace(/\r/g,'');
return str.replace(/(\n|^) *([^\n]*)/g,"$1> $2");
return str.replace(/(\n|^)( *)([^\n]*)/g,"$1> $2$3");
});
}
}
......
wiki: function() {
this.encloseLineSelection('','',function(str) {
str = str.replace(/\r/g,'');
return str.replace(/(\n|^) *[>]? *([^\n]*)/g,"$1$2");
return str.replace(/(\n|^) *(> ?)?( *)([^\n]*)/g,"$1$3$4");
});
}
}
    (1-1/1)