Menu

#337 another case of smartquotes failing to distinguish open and close quote

closed-fixed
nobody
None
5
2020-03-03
2017-12-30
jfbu
No

Consider this test.rst

John-'Jack'
John--'Jack'
John-- 'Jack'

and process it via rst2html.py --smart-quotes -- test.rst test.html. We get:

<p>John-‘Jack’
John–’Jack’
John– ‘Jack’</p>

In second case, the first quote character is closing, not opening. Same phenomenon with using " in place of ' in source.

Discussion

  • Günter Milde

    Günter Milde - 2018-01-02

    I cannot reproduce here with smartquotes.py 1.8.1 2017-10-25.
    Opening quotes are correctly recognized also after --.

     
  • jfbu

    jfbu - 2018-01-02

    I had only tested with 0.14 indeed. So the issue was already solved by https://sourceforge.net/p/docutils/code/8190/, and I confirm it works for me too.

    I have a question: I git cloned docutils, but pip install . takes quite some time (so much so that I would not go into git bisect), and pip install -e . did not work for me. How can I install Docutils in a virtualenv and test various checkouts of the commit history?

     

    Last edit: jfbu 2018-01-02
  • Günter Milde

    Günter Milde - 2018-01-15
    • status: open --> closed-fixed
     
  • Günter Milde

    Günter Milde - 2018-01-15

    Closing the bug. This seems to be solved in the development version.
    Thank you for reporting.

     

Log in to post a comment.