Assorted bugfixes
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@101 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
4a63a1ce8c
commit
26de5a45df
13 changed files with 59 additions and 39 deletions
|
@ -149,14 +149,16 @@ public abstract class ExportFilterBase implements
|
|||
else if (c=='>'){
|
||||
buf.append(">");
|
||||
}
|
||||
else if (c=='\u0009' || c=='\n' || c=='\r' || (c>='\u0020' && c<='\uD7FF') || (c>='\uE000' && c<'\uFFFD')) {
|
||||
//else if (c=='\u0009' || c=='\n' || c=='\r' || (c>='\u0020' && c<='\uD7FF') || (c>='\uE000' && c<'\uFFFD')) {
|
||||
else if (c=='\u0009' || c=='\n' || c=='\r' || (c>='\u0020' && c<'\uFFFD')) {
|
||||
// Valid characters found at xml.com
|
||||
// Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
|
||||
// (the latter are represented as surrogate pairs (#xD800-#xDFFF)
|
||||
buf.append(c);
|
||||
}
|
||||
else {
|
||||
// Found illegal character
|
||||
System.out.println("Illegal character : "+Integer.toHexString(c));
|
||||
//System.out.println("Illegal character : "+Integer.toHexString(c));
|
||||
}
|
||||
}
|
||||
return buf.toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue