OSDN Git Service
(root)
/
neighbornote
/
NeighborNote.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a9e08f7
)
Added logic to capture if an error happens when cleaning up the note with JTidy.
author
Randy Baumgarte
<randy@fbn.cx>
Thu, 2 Sep 2010 18:34:54 +0000
(14:34 -0400)
committer
Randy Baumgarte
<randy@fbn.cx>
Tue, 14 Sep 2010 10:23:34 +0000
(06:23 -0400)
src/cx/fbn/nevernote/evernote/EnmlConverter.java
patch
|
blob
|
history
diff --git
a/src/cx/fbn/nevernote/evernote/EnmlConverter.java
b/src/cx/fbn/nevernote/evernote/EnmlConverter.java
index
8b37bca
..
128e7e6
100644
(file)
--- a/
src/cx/fbn/nevernote/evernote/EnmlConverter.java
+++ b/
src/cx/fbn/nevernote/evernote/EnmlConverter.java
@@
-102,6
+102,9
@@
public class EnmlConverter {
ByteArrayOutputStream os = new ByteArrayOutputStream();
\r
tidy.parse(is, os);
\r
newContent = os.toString();
\r
+
\r
+ if (newContent.trim().equals(""))
\r
+ newContent = null;
\r
\r
// If the repair above returned null, then the XML is foobar.
\r
// We are done here.
\r