Skip to content

Navigation Menu

Sign in
Appearance settings

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

Commit 91e7afd

Browse filesBrowse files
committed
Add test for mixed tabs and spaces with Python
1 parent 3215589 commit 91e7afd
Copy full SHA for 91e7afd

File tree

167 files changed

+856
-66
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

167 files changed

+856
-66
lines changed

‎tests/example.rst

Copy file name to clipboardExpand all lines: tests/example.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_example_rst_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_example_rst_.rst
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
Hello World
1515
1616
17+
.. code-block:: python3
18+
19+
Hello World
20+
21+
1722
.. code-cell:: python3
1823
:count: 1
1924

‎tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_example_rst_.yml

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_custom_entry_point_example_rst_.yml
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ err:
33
out:
44
- "--- .../example.rst\t(original)"
55
- "+++ .../example.rst\t(reformatted)"
6-
- '@@ -11,23 +11,13 @@'
6+
- '@@ -11,29 +11,18 @@'
77
- ''
88
- ' .. code-block:: python3'
99
- ''
@@ -16,6 +16,13 @@ out:
1616
- "+\tHello World"
1717
- ''
1818
- ''
19+
- ' .. code-block:: python3'
20+
- ''
21+
- "-\tfor item in [a,b,c] :"
22+
- "-\t if item: print(item)"
23+
- "+\tHello World"
24+
- ''
25+
- ''
1926
- ' .. code-cell:: python3'
2027
- " \t:count: 1"
2128
- ''

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_0_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_0_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_1_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_1_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_2_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_2_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_3_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_3_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_4_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_4_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_5_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_5_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_6_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_6_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_7_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_empty_7_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_0_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_0_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_1_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_1_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_2_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_2_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_3_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_3_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_4_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_4_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_5_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_5_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_6_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_6_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_7_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_7_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_0_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_0_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_1_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_1_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_2_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_2_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_3_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_3_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_4_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_4_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_5_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_5_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_6_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_6_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_7_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_caps_7_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_python_false_0_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_python_false_0_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_python_false_1_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_python_false_1_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

‎tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_python_false_2_.rst

Copy file name to clipboardExpand all lines: tests/test_snippet_fmt_/test_snippet_fmt_example_rst_ini_python_false_2_.rst
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
if item: print(item)
2020
2121
22+
.. code-block:: python3
23+
24+
for item in [a,b,c] :
25+
if item: print(item)
26+
27+
2228
.. code-cell:: python3
2329
:count: 1
2430

0 commit comments

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