Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-2525

npsp spaces outside of mrk-tags of mtype "seg" should be allowed

    • High
    • Hide
      Due to invalid XLIFF from Across there is a check in import, that checks, if there is text outside of mrk-tags of mtype "seg" inside of seg-source or target tags. Spaces and tags are allowed, but nbsp characters were not so far. This is changed and all other masked whitespace tags are allowed to be outside of mrk tags too.
      Show
      Due to invalid XLIFF from Across there is a check in import, that checks, if there is text outside of mrk-tags of mtype "seg" inside of seg-source or target tags. Spaces and tags are allowed, but nbsp characters were not so far. This is changed and all other masked whitespace tags are allowed to be outside of mrk tags too.

      Due to invalid xliff from Across there is a check in the xliff import from Across, that checks, if there is text outside of mrk-tags of mtype "seg" inside of seg-source or target tags.

      If this is the case the import stops.

      This behavior is ok, as long as there really is text, yet if the content is only tags plus white-space, the import should pass. All white-space characters (including nbsp) should be recognized as white-space.

       

          [TRANSLATE-2525] npsp spaces outside of mrk-tags of mtype "seg" should be allowed

          Updated tests also.

          Thomas Lauria added a comment - Updated tests also.

          Tags basically are allowed to be outside of mrk tags. But in the provided example there was also a NBSP space character, which was not recognized as whitespace (which is allowed too) by the regex checking the outside content. This is fixed.

          Thomas Lauria added a comment - Tags basically are allowed to be outside of mrk tags. But in the provided example there was also a NBSP space character, which was not recognized as whitespace (which is allowed too) by the regex checking the outside content. This is fixed.

            tlauria Thomas Lauria
            marcmittag Marc Mittag [Administrator]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: