[PATCH 6/9] StringList.get_text_block(): Support indention by tabs
"Jarret \"Jax\" Renker via Docutils-develop" <[email protected]>
| Newsgroups | gmane.text.docutils.devel |
|---|---|
| Message-ID | <I5NnB2hXHZgc7RnvJPvJnyCt10EaYOH7o6Lz3Kaf50TkiCvhHYuDTQ5mjOnHXh1YWz4Iu7sweIIrhLPkERW-MelIB_p70zimxJgsJRH2iOM=@proton.me> |
---
docutils/docutils/statemachine.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docutils/docutils/statemachine.py b/docutils/docutils/statemachine.py
index 4b482c57e..c1f07b57e 100644
--- a/docutils/docutils/statemachine.py
+++ b/docutils/docutils/statemachine.py
@@ -1350,7 +1350,7 @@ def get_text_block(self, start, flush_left=False):
line = self.data[end]
if not line.strip():
break
- if flush_left and (line[0] == ' '):
+ if flush_left and (line[0] in ' \t'):
source, offset = self.info(end)
raise UnexpectedIndentationError(self[start:end], source,
offset + 1)