[liblouis-liblouisxml] Getting unwanted blank lines at end of BRF

  • From: "John Brugge" <johnbrugge@xxxxxxxxxxxx>
  • To: "liblouis-liblouisxml@xxxxxxxxxxxxx" <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Thu, 12 May 2011 08:35:59 -0700

Hello,

I'm having a strange situation where I am getting 8,190 blank lines at the end 
of my converted BRF, but only for some input files, and only for some 
invocations, and I'm unable to pinpoint what would be causing it.

We are using liblouisxml 2.1.0, and I'm seeing this on both OS X and Linux. 
What is strangest is that this only happens when running xml2brl from Java, 
using the ProcessBuilder class. This is a class for running external 
command-line programs from within Java. When I capture the  full command line 
that is generated by this, and run the equivalent command from a terminal 
window, using the same input XML file, the BRF does not have any blank lines at 
the end, and otherwise has no differences. Furthermore, while this doesn't 
happen with all input XML, in those cases where it does happen, the number of 
blank lines is always 8,190, no matter the length of the input XML.

The command line looks like this:
xml2brl \
-f /Users/john/.benetech/liblouis/converterPackage/bookshare-refreshable.cfg \
-CliteraryTextTable=en-us-brf.dis,en-us-g1.ctb \
-CuncontractedTable=en-us-g1.ctb \
-CcompbrlTable=en-us-comp8.ctb \
-CeditTable=edittable.ctb \
-CcellsPerLine=40 \
-ClinesPerPage=2147483646 \
-CprintPages=yes \
/Users/john/brfTest/Little_Brother-prepared.xml \
/Users/john/brfTest/Little_Brother-manual.brf

Attached is the bookshare-refreshable.cfg file, which is one that we have been 
using for a long time without incident. I can pass along a sample XML file if 
that would be useful.

Any clues, or pointers to ways to debug this, are appreciated.
Thanks,
John Brugge
Bookshare.org

Other related posts: