From c333f7fc4ffcc196a55053efbfd294eaa930e983 Mon Sep 17 00:00:00 2001
From: Peter Cock
Date: Fri, 16 Apr 2021 11:59:24 +0100
Subject: [PATCH] Test case for RST301 Unexpected indentation.
---
tests/RST301/nesting.py | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 tests/RST301/nesting.py
diff --git a/tests/RST301/nesting.py b/tests/RST301/nesting.py
new file mode 100644
index 0000000..3a39ffa
--- /dev/null
+++ b/tests/RST301/nesting.py
@@ -0,0 +1,28 @@
+"""Example of invalid nested bullets in RST.
+
+This file should fail RST validation:
+
+ $ flake8 --select RST RST301/nesting.py
+ RST301/nesting.py:21:1: RST301 Unexpected indentation
+
+See below.
+"""
+
+
+def function(args):
+ """Do something.
+
+ This looks like a nested bullet point list,
+ doesn't it?
+
+ - aaaa
+ - bb1
+ - bb2
+ - ccc
+ - aaaa
+ - aaaa
+
+ However, RST would require blank lines between the
+ different levels of nesting.
+ """
+ pass