Skip to content

Commit

Permalink
indentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyaa-s committed Jun 4, 2020
1 parent cd7d7d4 commit 91b66f6
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions dist/PublicLab.Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -21960,8 +21960,7 @@ module.exports = function initAutoCenter(_module, wysiwyg) {
if (lead && trail) {
chunks.before = chunks.before.replace(rleading, '');
chunks.after = chunks.after.replace(rtrailing, '');
}
else {
} else {
// searches if center tag is opened in selected text
var opened = ropen.test(chunks.selection);
if (opened) {
Expand Down Expand Up @@ -22025,8 +22024,7 @@ module.exports = function initAutoCenter(_module, wysiwyg) {
return 0;
}
}
}
else if (mode == "markdown") {
} else if (mode == "markdown") {
var open = '->';
var close = '<-';
var rleading = new RegExp(open + '( [^>]*)?', 'i');
Expand All @@ -22040,9 +22038,7 @@ module.exports = function initAutoCenter(_module, wysiwyg) {
if(trail && lead) {
chunks.before = chunks.before.replace(rleading, '');
chunks.after = chunks.after.replace(rtrailing, '');
}
else
{
} else {
var opened = ropen.test(chunks.selection);
var closed = rclose.test(chunks.selection);
if(opened || closed)
Expand All @@ -22055,8 +22051,7 @@ module.exports = function initAutoCenter(_module, wysiwyg) {
chunks.selection = chunks.selection.replace(rclose, '');
chunks.after = close + chunks.after;
}
}
else {
} else {
// adds center tag and parses into markdown
chunks.selection = _module.wysiwyg.parseHTML("<center>"+chunks.selection+"</center>")
}
Expand Down

0 comments on commit 91b66f6

Please sign in to comment.