This question already has an answer here:
- auto-replacing my dash makes me sad 2 answers
I often use an editor like OpenOffice Writer to build documentation. My documentation is usually technical, and it often includes commands for the terminal.
When I format a command, I will indent the command by 1/2 inch and I will change the font to Times Roman or Times New Roman.
The editors replace a hyphen with a dash (I think its called an em-dash). So a command like:
will fail when copy/pasted into a terminal due to the errant character.
The problem comes to light after performing a "Save as PDF". No matter what I do, the PDF always ends up with the wrong dash or hyphen (even if the OO document seems correct).
How do I distinguish text that include a hyphen so that the dash is unchanged?