* Bug #11941 fixed - show_margins() failed in 'nyquist' mode if the system is
in state-space form.
+* Bug #11944 fixed - In SciNotes, untabify several lines did not work correctly.
+
* Bug #11952 fixed - In SciNotes, a Java exception occured on selection of text
containing a \E.
}
}
+ public String getBasicTabulationString() {
+ if (tab.equals(" ")) {
+ char[] str = new char[lengthTab];
+ for (int i = 0; i < lengthTab; i++) {
+ str[i] = ' ';
+ }
+
+ return new String(str);
+ } else {
+ return tab;
+ }
+ }
+
/**
* Set the type and the size of a tabulation
* @param tabulation a Tabulation
try {
String str = doc.getText(sstart, end - sstart + 1);
- String untab = EOL + tab;
+ String untab = EOL + getBasicTabulationString();
str = str.replaceAll(untab, EOL);
IndentScanner iscan = indent.getIndentScanner();
int n = iscan.getTabsAtBeginning(elem.getElementIndex(sstart));