<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - DOTM AutoText import creates incorrect shortcut (with space)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124089">124089</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DOTM AutoText import creates incorrect shortcut (with space)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.2.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>filter:docx
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>baron@caesar.elte.hu
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>104520, 108663
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Word lacks the concept of shortcuts for AutoText, so during import simply the
first couple of characters are taken, including spaces if any is there.
However, spaces are normally not permitted (can't be entered), and mess up
shortcuts: simply pressing F3 at the end won't do anything, the whole shortcut
has to be selected first.

The easiest fix would be to strip spaces from shortcuts.
Another option would be to use initials instead, but they aren't very
important, in Word entering them based on the suggestion after the first couple
of characters seems to be the normal usage.

AutoText import from OOXML files was added by Szymon Kłos in 2017-04 and 05,
perhaps that offers some clues where to find the relevant piece of code.

I don't have a sample right now, perhaps could try to create one later.

Observed using LO 6.2.0.3 / Windows 7.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] DOCX (OOXML) bug tracker"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=104520">Bug 104520</a>] [META] DOCX (OOXML) bug tracker
              </li>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] AutoText bugs and enhancements"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108663">Bug 108663</a>] [META] AutoText bugs and enhancements
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>