Feature #35677 » 0001-preserve-leading-spaces-when-using-the-Quote-functio.patch
| 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");
|
||
|
});
|
||
|
}
|
||
|
}
|
||