Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Unexpected behavior at the end of docstring #43

Copy link
Copy link
Open
@kkew3

Description

@kkew3
Issue body actions

How to reproduce

_ denotes the cursor location.

def f(a):
    """_

Now type <Enter>. It becomes:

def f(a):
    """[summary]
    
    [description]
    :param a: [description]
    :type a: [type]
    """

Now [summary] is selected. Typing <Tab> four times, the cursor should jump to:

def f(a):
    """[summary]
    
    [description]
    :param a: [description]
    :type a: [type]
    """_

To continue writing, one would type <Enter>. However, it renders:

def f(a):
    """[summary]
    
    [description]
    :param a: [description]
    :type a: [type]
    """[summary]
    
    [description]
    :param a: [description]
    :type a: [type]
    """

with the second [summary] selected.

Expected behavior

The last <Enter> in the previous example should trigger only an "Enter" rather than insert another block of docstring.

Current workaround

Type Ctrl-<Enter> instead. However, this seems awkward as it breaks normal workflow.

Version and formatter

  • Sublime text 3: Sublime Text Build 3200
  • DocBlockr_Python: unknown, but I installed it today (2019-03-15 [YYYY-mm-dd])
  • formatter: sphinx

Thanks.

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.