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.
14 """This is a docstring with
15 some lines of text here
21 '''This is another docstring
22 with more lines of text
28 '''"This" is a string with some
34 '''Indentation with tabs
49 Lorem ipsum dolor sit amet.
51 Consectetur adipiscing elit:
52 - sed do eiusmod tempor incididunt ut labore
54 - enim ad minim veniam
55 - quis nostrud exercitation ullamco laboris nisi
56 - aliquip ex ea commodo consequat
63 These lines are indented in a way that does not
71 This has a shallow indent
72 - But some lines are deeper
73 - And the closing quote is too deep
79 """But with a newline after it!
105 def multiline_whitespace():
114 def oneline_whitespace():
126 def believe_it_or_not_this_is_in_the_py_stdlib(): '''
130 def ignored_docstring():
134 def single_line_docstring_with_whitespace():
135 """ This should be stripped """
137 def docstring_with_inline_tabs_and_space_indentation():
141 tab at start of line and then a tab separated value
142 multiple tabs at the beginning and inline
143 mixed tabs and spaces at beginning. next line has mixed tabs and spaces only.
145 line ends with some tabs
149 def docstring_with_inline_tabs_and_tab_indentation():
153 tab at start of line and then a tab separated value
154 multiple tabs at the beginning and inline
155 mixed tabs and spaces at beginning. next line has mixed tabs and spaces only.
157 line ends with some tabs
162 def backslash_space():
166 def multiline_backslash_1():
172 def multiline_backslash_2():
176 # Regression test for #3425
177 def multiline_backslash_really_long_dont_crash():
179 hey there hello guten tag hi hoow are you ola zdravstvuyte ciao como estas ca va \ """
182 def multiline_backslash_3():
184 already escaped \\ '''
187 def my_god_its_full_of_stars_1():
188 "I'm sorry Dave\u2001"
191 # the space below is actually a \u2001, removed in output
192 def my_god_its_full_of_stars_2():
196 def docstring_almost_at_line_limit():
197 """long docstring................................................................."""
200 def docstring_almost_at_line_limit2():
201 """long docstring.................................................................
203 ..................................................................................
207 def docstring_at_line_limit():
208 """long docstring................................................................"""
211 def multiline_docstring_at_line_limit():
212 """first line-----------------------------------------------------------------------
214 second line----------------------------------------------------------------------"""
217 def stable_quote_normalization_with_immediate_inner_single_quote(self):
220 <text here, since without another non-empty line black is stable>
239 """This is a docstring with
240 some lines of text here
246 """This is another docstring
247 with more lines of text
253 '''"This" is a string with some
259 """Indentation with tabs
275 Lorem ipsum dolor sit amet.
277 Consectetur adipiscing elit:
278 - sed do eiusmod tempor incididunt ut labore
279 - dolore magna aliqua
280 - enim ad minim veniam
281 - quis nostrud exercitation ullamco laboris nisi
282 - aliquip ex ea commodo consequat
289 These lines are indented in a way that does not
297 This has a shallow indent
298 - But some lines are deeper
299 - And the closing quote is too deep
305 """But with a newline after it!"""
329 def multiline_whitespace():
333 def oneline_whitespace():
345 def believe_it_or_not_this_is_in_the_py_stdlib():
350 def ignored_docstring():
355 def single_line_docstring_with_whitespace():
356 """This should be stripped"""
359 def docstring_with_inline_tabs_and_space_indentation():
363 tab at start of line and then a tab separated value
364 multiple tabs at the beginning and inline
365 mixed tabs and spaces at beginning. next line has mixed tabs and spaces only.
367 line ends with some tabs
371 def docstring_with_inline_tabs_and_tab_indentation():
375 tab at start of line and then a tab separated value
376 multiple tabs at the beginning and inline
377 mixed tabs and spaces at beginning. next line has mixed tabs and spaces only.
379 line ends with some tabs
384 def backslash_space():
388 def multiline_backslash_1():
394 def multiline_backslash_2():
399 # Regression test for #3425
400 def multiline_backslash_really_long_dont_crash():
402 hey there hello guten tag hi hoow are you ola zdravstvuyte ciao como estas ca va \ """
405 def multiline_backslash_3():
407 already escaped \\"""
410 def my_god_its_full_of_stars_1():
411 "I'm sorry Dave\u2001"
414 # the space below is actually a \u2001, removed in output
415 def my_god_its_full_of_stars_2():
419 def docstring_almost_at_line_limit():
420 """long docstring................................................................."""
423 def docstring_almost_at_line_limit2():
424 """long docstring.................................................................
426 ..................................................................................
430 def docstring_at_line_limit():
431 """long docstring................................................................"""
434 def multiline_docstring_at_line_limit():
435 """first line-----------------------------------------------------------------------
437 second line----------------------------------------------------------------------"""
440 def stable_quote_normalization_with_immediate_inner_single_quote(self):
443 <text here, since without another non-empty line black is stable>