computerline1z / okapi

Automatically exported from code.google.com/p/okapi
0 stars 0 forks source link

doxygen inline code differences during merge... #403

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In some case we now throw an exception if there is a inline code difference 
during merge. One of the docygen files was failing in the tkit integration 
tests.

I'm not sure if this unit test really exercises the problem and this may be an 
issue with the skeleton merger (see 
/integration-tests-tkit/src/test/java/net/sf/okapi/tkit/integration/RoundTripDox
ygenSkeletonBasedTkitsIT.java)

Text:
/*!
     <li>text with 
</ol>
*/

Skeleton TU:
[li]text with [ol]

When we pull the text unit from the xliff we are missing the final [ol] code:
[li]text with []

Strangely there is a "invisible" code there with empty content. The merger 
throws an exception because there is a code difference.

This unit test may help. I had to change our tikit integration files to remove 
the section that was crashing. But the doxygen file has been unaltered.

@Ignore("assert fails")
    public void testOutputMultipleLineList () {
        String snippet = "/*!<li>mouse double click event\n"
                       + "</ol>*/";
        String result = FilterTestDriver.generateOutput(getEvents(snippet),
            filter.getEncoderManager(), LocaleId.FRENCH);
        assertEquals(snippet, result);
    }

Original issue reported on code.google.com by jhargrav...@gmail.com on 9 May 2014 at 5:29