|
|
|
|
@@ -233,7 +233,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -250,7 +250,7 @@ def doctest_long_lines():
|
|
|
|
|
But this one is long enough to get wrapped.
|
|
|
|
|
>>> foo, bar, quux = this_is_a_long_line(lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard)
|
|
|
|
|
'''
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(lion, giraffe, hippo, zeba, lemur, penguin, monkey)
|
|
|
|
|
@@ -1601,7 +1601,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -1618,7 +1618,7 @@ def doctest_long_lines():
|
|
|
|
|
But this one is long enough to get wrapped.
|
|
|
|
|
>>> foo, bar, quux = this_is_a_long_line(lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard)
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
@@ -2972,7 +2972,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -2989,7 +2989,7 @@ def doctest_long_lines():
|
|
|
|
|
But this one is long enough to get wrapped.
|
|
|
|
|
>>> foo, bar, quux = this_is_a_long_line(lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard)
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
@@ -4343,7 +4343,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -4360,7 +4360,7 @@ def doctest_long_lines():
|
|
|
|
|
But this one is long enough to get wrapped.
|
|
|
|
|
>>> foo, bar, quux = this_is_a_long_line(lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard)
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
@@ -5714,7 +5714,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -5731,7 +5731,7 @@ def doctest_long_lines():
|
|
|
|
|
But this one is long enough to get wrapped.
|
|
|
|
|
>>> foo, bar, quux = this_is_a_long_line(lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard)
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
@@ -7083,7 +7083,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -7104,7 +7104,7 @@ def doctest_long_lines():
|
|
|
|
|
... lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard
|
|
|
|
|
... )
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
@@ -8451,7 +8451,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -8472,7 +8472,7 @@ def doctest_long_lines():
|
|
|
|
|
... lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard
|
|
|
|
|
... )
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
@@ -9819,7 +9819,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -9849,7 +9849,7 @@ def doctest_long_lines():
|
|
|
|
|
... leopard,
|
|
|
|
|
... )
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
@@ -11196,7 +11196,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -11217,7 +11217,7 @@ def doctest_long_lines():
|
|
|
|
|
... lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard
|
|
|
|
|
... )
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
@@ -12564,7 +12564,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -12594,7 +12594,7 @@ def doctest_long_lines():
|
|
|
|
|
... leopard,
|
|
|
|
|
... )
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
@@ -13941,7 +13941,7 @@ def doctest_varying_start_column():
|
|
|
|
|
# actually extend past the configured line limit.
|
|
|
|
|
#
|
|
|
|
|
# It's not quite clear whether this is desirable or not. We could in
|
|
|
|
|
# theory compute the intendation length of a code snippet and then
|
|
|
|
|
# theory compute the indentation length of a code snippet and then
|
|
|
|
|
# adjust the line-width setting on a recursive call to the formatter.
|
|
|
|
|
# But there are assuredly pathological cases to consider. Another path
|
|
|
|
|
# would be to expose another formatter option for controlling the
|
|
|
|
|
@@ -13962,7 +13962,7 @@ def doctest_long_lines():
|
|
|
|
|
... lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard
|
|
|
|
|
... )
|
|
|
|
|
"""
|
|
|
|
|
# This demostrates a normal line that will get wrapped but won't
|
|
|
|
|
# This demonstrates a normal line that will get wrapped but won't
|
|
|
|
|
# get wrapped in the docstring above because of how the line-width
|
|
|
|
|
# setting gets reset at the first column in each code snippet.
|
|
|
|
|
foo, bar, quux = this_is_a_long_line(
|
|
|
|
|
|