Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrapping for Python rst paragraphs with inline directives mistakes the inline for a block directive #75

Open
zzzeek opened this issue Jun 29, 2020 · 0 comments

Comments

@zzzeek
Copy link

zzzeek commented Jun 29, 2020

when restructured text includes inline colon directives like :ref: or sphinx-specific elements like :meth:, :class:, etc. , wrap plus thinks these are beginning an indented section:

        # works:

        The change includes that we have modified
        the
        thing :meth:`_schema.Table.tometadata` to now
        read as :meth:`_schema.Table.to_metadata`.

        # result: 
        
        The change includes that we have modified the thing
        :meth:`_schema.Table.tometadata` to now read as
        :meth:`_schema.Table.to_metadata`.

        # doesn't work:

        The change includes that we have modified
        the thing
        :meth:`_schema.Table.tometadata` to now
        read as :meth:`_schema.Table.to_metadata`.

        # result:

        The change includes that we have modified the thing
        :meth:`_schema.Table.tometadata` to now read as
            :meth:`_schema.Table.to_metadata`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant