Permalink
Browse files

added line breaks to printable ASCII alphabet

  • Loading branch information...
1 parent a1aaa15 commit 69c71f43c364b52235d07b36ac127960c19fef10 @simlei simlei committed Feb 3, 2012
@@ -209,10 +209,14 @@ private void generateClassicAlphabets() {
}
private void generateStandardAlphabets() {
- char[] set = new char[95];
+ char[] extraChars = {'\r', '\n'};
+ char[] set = new char[95+extraChars.length];
for (int i = 32; i < 127; i++) {
set[i - 32] = (char) i;
}
+ for(int i=0; i<extraChars.length; i++) {
+ set[set.length-extraChars.length+i] = extraChars[i];
+ }
Alphabet shortAsciiAlphabet = new Alphabet(set, "Printable ASCII", "ASCII", AbstractAlphabet.NO_DISPLAY, true); //$NON-NLS-1$
addInternAlphabet(shortAsciiAlphabet);

0 comments on commit 69c71f4

Please sign in to comment.