diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 00667034ce7..76d54f1ab02 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -1083,13 +1083,14 @@ sub do_env_tableii{
my $a2 = $col_aligns[1];
s/\\lineii\\lineii[$a1|$a2]'
- . "\n "
- . "\n "
+ . "\n "
+ . "\n "
. "\n $th1$h1\ "
. "\n $th2$h2\ "
+ . "\n "
. "\n "
. "\n