This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 157561
Collapse All | Expand All

(-)a/editor.lib/src/org/netbeans/modules/editor/lib/TrailingWhitespaceRemove.java (-8 / +10 lines)
Lines 103-116 Link Here
103
    }
103
    }
104
104
105
    public synchronized void run(CompoundEdit compoundEdit) {
105
    public synchronized void run(CompoundEdit compoundEdit) {
106
        inWhitespaceRemove = true;
106
        if (!Boolean.getBoolean("editor.lib.TrailingWhitespaceRemove.disable")) {
107
        try {
107
            inWhitespaceRemove = true;
108
            new ModsProcessor().removeWhitespace();
108
            try {
109
            NewModRegionsEdit edit = new NewModRegionsEdit();
109
                new ModsProcessor().removeWhitespace();
110
            compoundEdit.addEdit(edit);
110
                NewModRegionsEdit edit = new NewModRegionsEdit();
111
            edit.run();
111
                compoundEdit.addEdit(edit);
112
        } finally {
112
                edit.run();
113
            inWhitespaceRemove = false;
113
            } finally {
114
                inWhitespaceRemove = false;
115
            }
114
        }
116
        }
115
    }
117
    }
116
118

Return to bug 157561