Fixes #469 - Prevented rst crash with only-space strings (#470)

Thanks nexone for the report.
This commit is contained in:
Claude Paroz
2020-06-15 07:42:51 +02:00
committed by GitHub
parent 985c3d98b0
commit ce79e44d14
3 changed files with 9 additions and 1 deletions
+2
View File
@@ -659,6 +659,7 @@ class RSTTests(BaseTestCase):
data.headers = self.headers
data.append(self.john)
data.append(('Wendy', '', 43))
data.append(('Esther', ' ', 31))
self.assertEqual(
data.export('rst'),
'========== ========= ===\n'
@@ -666,6 +667,7 @@ class RSTTests(BaseTestCase):
'========== ========= ===\n'
'John Adams 90 \n'
'Wendy 43 \n'
'Esther 31 \n'
'========== ========= ==='
)