[brailleblaster] push by RandomCh...@xxxxxxxxx - Line checking for empty node. on 2015-02-04 20:03 GMT

  • From: brailleblaster@xxxxxxxxxxxxxx
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Wed, 04 Feb 2015 20:04:07 +0000

Revision: 899efc3737cd
Branch:   rt2064-imgDescPerspSwitch
Author:   cmyers@xxxxxxxxxxxxxxxxxxxxx
Date:     Wed Feb  4 20:05:20 2015 UTC
Log:      Line checking for empty node.
https://code.google.com/p/brailleblaster/source/detail?r=899efc3737cd

Modified:
/src/main/org/brailleblaster/perspectives/braille/mapping/elements/SectionElement.java

=======================================
--- /src/main/org/brailleblaster/perspectives/braille/mapping/elements/SectionElement.java Fri Nov 14 18:29:13 2014 UTC +++ /src/main/org/brailleblaster/perspectives/braille/mapping/elements/SectionElement.java Wed Feb 4 20:05:20 2015 UTC
@@ -139,6 +139,10 @@
                        if(text.charAt(i) != '\n' && text.charAt(i) != '\t')
                                return true;
                }
+
+ //if empty node of length zero, but followed by brl, then part of template document + if(length == 0 && index < e.getChildCount() - 1 && e.getChild(index + 1) instanceof Element &&((Element)e.getChild(index + 1)).getLocalName().equals("brl"))
+                       return true;

                return false;
        }

Other related posts:

  • » [brailleblaster] push by RandomCh...@xxxxxxxxx - Line checking for empty node. on 2015-02-04 20:03 GMT - brailleblaster