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

Internal tag numbers are processed wrong when saving segment

XMLWordPrintable

    • Critical
    • Fixed bug which may cause wrong tag numbering saved to t5memory

      The problem:
      For some tags when copying source to target editor sends partially encoded string e.g.
      tag that in source looks like:

      <div class="open 67206373732d7374796c653d22666f6e742d66616d696c793a27417269616c273b666f6e742d666163653a27526567756c6172273b636f6c6f723a233030303030303b666f6e742d73697a653a32302e307074222063747970653d22782d63702d666f6e74222069643d22343934302d31392d312d3122 internal-tag ownttip"><span class="short" title="&lt;g css-style=&quot;font-family:'Arial';font-face:'Regular';color:#000000;font-size:20.0pt&quot; ctype=&quot;x-cp-font&quot; id=&quot;4940-19-1-1&quot;&gt;">&lt;1&gt;</span><span class="full" data-originalid="4940-19-1-1" data-length="-1">&lt;g css-style=&quot;font-family:'Arial';font-face:'Regular';color:#000000;font-size:20.0pt&quot; ctype=&quot;x-cp-font&quot; id=&quot;4940-19-1-1&quot;&gt;</span></div>
      

      in target while saving looks like:

      <div class="open 67206373732d7374796c653d22666f6e742d66616d696c793a27417269616c273b666f6e742d666163653a27526567756c6172273b636f6c6f723a233030303030303b666f6e742d73697a653a32302e307074222063747970653d22782d63702d666f6e74222069643d22343934302d31392d312d3122 internal-tag ownttip"><span class="short" title="&lt;g css-style=&quot;font-family:&amp;#39;Arial&amp;#39;;font-face:&amp;#39;Regular&amp;#39;;color:#000000;font-size:20.0pt&quot; ctype=&quot;x-cp-font&quot; id=&quot;4940-19-1-1&quot;&gt;">&lt;1&gt;</span><span class="full" data-originalid="4940-19-1-1" data-length="-1">&lt;g css-style=&quot;font-family:'Arial';font-face:'Regular';color:#000000;font-size:20.0pt&quot; ctype=&quot;x-cp-font&quot; id=&quot;4940-19-1-1&quot;&gt;</span></div>
      

      And due to nuances of implementation of the tags comparison encoded tag is not matched with the source, so we have the situation when tags in TM have wrong numbering (see related TS ticket)

      Solution:

      Need to fix tags comparison on the backend so tags ordering is correct.

            leonkiz Leon Kiz
            leonkiz Leon Kiz
            Sanya Mikhliaiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: