[liblouis-liblouisxml] Re: Small regression bug in latest changes to liblouisutdml

  • From: Bert Frees <bertfrees@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 16 May 2012 10:29:28 +0200


On 05/15/2012 05:47 PM, John J. Boyer wrote:
Hi Bert,

Well, I'll put this one on my to-do list. Can you send me a sample file
for testing?

Here you go, see the attachments.

There is another bug that I am trying to fix. When formatFor utd is
used, paragraphs are not indented. It has something to do with the new
inherit option in style->format .

This is probably because the functions start_style end_style are not used in the "utd" section, and those functions are where some important things are done. I only touched the "ordinary" section, like you said.

I think I have a solution to the dumping when the input positions array
is freed. However, the same problem may crop up elsewhere. You know the
saying that when you have a bug the most carefully modularized program
can become a bowl of speghetti. I think the extra variable in liblouis
may be overstraining something, but I have no idea why it should cause a
problem.

Christian reminded me that I forgot to change versioning information
when I added to the interface. That is a bit embarrassing, but couldn't
cause a bug.

John

On Tue, May 15, 2012 at 05:03:59PM +0200, Bert Frees wrote:
I noticed this by accident. I think it only happens in this specific
case. When the setting printPages is yes and printPageNumberAt is top,
and when the very first page of a document starts with a boxline, this
boxline is preceded by an empty line (a line filled with spaces).

After revision 3d076794ba8a everything is still ok. Then there are a few
revisions that don't build because of errors. The latest revision builds
again, but at this point the bug shows up.

/Bert

document document
para h
boxline &xpath(//border[@style='⠒']) 3

<?xml version="1.0" encoding="UTF-8"?>
<document> 
  <body>
     <border style="â ?"/>
     <h>heading between borders</h>
     <border style="â ?"/>
  </body>
</document>

Other related posts: