File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -797,11 +797,15 @@ def test_indent(self):
797
797
ET .indent (elem )
798
798
self .assertEqual (ET .tostring (elem ), b'<html>\n <body>text</body>\n </html>' )
799
799
800
+ elem = ET .XML ("<html> <body>text</body> </html>" )
801
+ ET .indent (elem )
802
+ self .assertEqual (ET .tostring (elem ), b'<html>\n <body>text</body>\n </html>' )
803
+
800
804
elem = ET .XML ("<html><body>text</body>tail</html>" )
801
805
ET .indent (elem )
802
806
self .assertEqual (ET .tostring (elem ), b'<html>\n <body>text</body>tail</html>' )
803
807
804
- elem = ET .XML ("<html><body><p>par</p><p>text</p><p><br/></p></body></html>" )
808
+ elem = ET .XML ("<html><body><p>par</p>\n <p>text</p>\t <p><br/></p></body></html>" )
805
809
ET .indent (elem )
806
810
self .assertEqual (
807
811
ET .tostring (elem ),
You can’t perform that action at this time.
0 commit comments