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; }