]> git.madduck.net Git - etc/vim.git/blob - tests/data/preview/no_blank_line_before_docstring.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Doc: Developer reference update (#3755)
[etc/vim.git] / tests / data / preview / no_blank_line_before_docstring.py
1 def line_before_docstring():
2
3     """Please move me up"""
4
5
6 class LineBeforeDocstring:
7
8     """Please move me up"""
9
10
11 class EvenIfThereIsAMethodAfter:
12
13     """I'm the docstring"""
14     def method(self):
15         pass
16
17
18 class TwoLinesBeforeDocstring:
19
20
21     """I want to be treated the same as if I were closer"""
22
23
24 class MultilineDocstringsAsWell:
25
26     """I'm so far
27
28     and on so many lines...
29     """
30
31
32 # output
33
34
35 def line_before_docstring():
36     """Please move me up"""
37
38
39 class LineBeforeDocstring:
40     """Please move me up"""
41
42
43 class EvenIfThereIsAMethodAfter:
44     """I'm the docstring"""
45
46     def method(self):
47         pass
48
49
50 class TwoLinesBeforeDocstring:
51     """I want to be treated the same as if I were closer"""
52
53
54 class MultilineDocstringsAsWell:
55     """I'm so far
56
57     and on so many lines...
58     """