diff --git a/extension.json b/extension.json index 941904f2d..7c93e45f8 100644 --- a/extension.json +++ b/extension.json @@ -257,6 +257,8 @@ "cases/split-list/split-list-modified.html", "cases/split-list2/split-list2.html", "cases/split-list2/split-list2-modified.html", + "cases/mixed-indentation/mixed-indentation.html", + "cases/mixed-indentation/mixed-indentation-modified.html", "cases/wrappers/wrappers.html", "cases/wrappers/wrappers-modified.html", "cases/signatures-funny/signatures-funny.html", diff --git a/tests/cases/mixed-indentation/mixed-indentation-modified.html b/tests/cases/mixed-indentation/mixed-indentation-modified.html new file mode 100644 index 000000000..8c0437c26 --- /dev/null +++ b/tests/cases/mixed-indentation/mixed-indentation-modified.html @@ -0,0 +1,11 @@ +

1

+

Comment +

+
Reply to Matma Rex|2020-07-29T23:01:00.000Z|0
+

2

+

Comment +

+ +

and PS Matma Rex (talk) 23:01, 29 July 2020 (UTC) +

Reply to Matma Rex|2020-07-29T23:01:00.000Z|1
+
diff --git a/tests/cases/mixed-indentation/mixed-indentation.html b/tests/cases/mixed-indentation/mixed-indentation.html new file mode 100644 index 000000000..b52c218a9 --- /dev/null +++ b/tests/cases/mixed-indentation/mixed-indentation.html @@ -0,0 +1,11 @@ +

1

+

Comment +

+ +

2

+

Comment +

+ +

and PS Matma Rex (talk) 23:01, 29 July 2020 (UTC) +

+
diff --git a/tests/cases/modified.json b/tests/cases/modified.json index 7bda1830a..e0f40d8ab 100644 --- a/tests/cases/modified.json +++ b/tests/cases/modified.json @@ -55,6 +55,13 @@ "config": "../data/enwiki-config.json", "data": "../data/enwiki-data.json" }, + { + "name": "Replies to comments with mixed indentation", + "dom": "cases/mixed-indentation/mixed-indentation.html", + "expected": "cases/mixed-indentation/mixed-indentation-modified.html", + "config": "../data/enwiki-config.json", + "data": "../data/enwiki-data.json" + }, { "name": "Reply inserted inside/outside various wrapper elements", "dom": "cases/wrappers/wrappers.html",