Are you sure it inserts an em-dash? Libreoffice will insert an en-dash, but not an em-dash.