We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48b1e70 commit b25b1a4Copy full SHA for b25b1a4
assets/js/app.js
@@ -298,6 +298,11 @@ Hooks.Space = {
298
this.el.addEventListener("click", (e) => {
299
const id = e.target.value;
300
const textarea = document.getElementById(id);
301
+ //https://stackoverflow.com/questions/15131072/check-whether-string-contains-a-line-break
302
+ var match = /\r|\n/.exec(textarea.value);
303
+ if (!match) {
304
+ alert('Must contain paragraph breaks to add excessive spaces');
305
+ }
306
textarea.value = textarea.value.replace(/\n/g, "\n\n");
307
});
308
},
0 commit comments