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

Unexpected behavior at the end of docstring #43

Open
kkew3 opened this issue Mar 16, 2019 · 0 comments
Open

Unexpected behavior at the end of docstring #43

kkew3 opened this issue Mar 16, 2019 · 0 comments

Comments

@kkew3
Copy link

kkew3 commented Mar 16, 2019

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.

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