Smart quotes bug

Hello, my friends.

When importing text into a chapter, (usually word processor files produced in LibreOffice and saved as *.doc files) I frequently end up with a question mark following all the single or double closing smart quotes and sometimes even after the opening smart quotes. It is driving me nuts, which I will admit, is a very short trip…

Some samples:





Thanks in advance!

Dr. Steve, central Mexico