Skip to content

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

@zzzeek

Description

@zzzeek

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`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions