AbstractMarkupFilter produces placeholder-only segments

Issue #336 resolved
Former user created an issue

Original issue 336 created by @ysavourel on 2013-05-08T17:52:41.000Z:

See attached HTML testcase. This file contains no translatable text, but produces 5 trans-units when converted to XLIFF with tikal. In all cases, the TUs contain just a single placeholder, without even any whitespace.

These TUs are of questionable quality. I would propose that the filter shouldn't create TUs that consist solely of a single placeholder. I'm unsure about whether it should be an option. (Conceivably, somebody might want to do something with them, but at best I think that's a very small use case.)

Comments (2)

  1. Former user Account Deleted

    Comment 1. originally posted by @ysavourel on 2013-10-30T23:09:11.000Z:

    Fix seems like a pretty straightforward extension of the similar fixes related to subfiltering. I've got a patch but I want to try to land the parameter stuff first.

  2. Log in to comment