From c213bb9f3adfc1dccc2f03141489f833bd83db53 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno Date: Wed, 4 Jan 2023 17:21:48 +0100 Subject: [PATCH] Adapt tests to pygments 2.14.0 This patch update the test fixtures to match the output of pygments 2.14.0 --- tests/fixtures/test_CommonMark_008.html | 4 ++-- tests/fixtures/test_GFM_doublequotes.html | 8 ++++---- tests/fixtures/test_GFM_highlight.html | 6 +++--- tests/fixtures/test_GFM_malicious_pre.html | 2 +- tests/fixtures/test_rst_008.html | 18 +++++++++--------- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/fixtures/test_CommonMark_008.html b/tests/fixtures/test_CommonMark_008.html index b941909..4d52a37 100644 --- a/tests/fixtures/test_CommonMark_008.html +++ b/tests/fixtures/test_CommonMark_008.html @@ -9,8 +9,8 @@ dog = Dog('Fido')

and then here is some bash:

-
if [ "$1" = "--help" ]; then
-    echo "OK"
+
if [ "$1" = "--help" ]; then
+    echo "OK"
 fi
 

or click SurveyMonkey

diff --git a/tests/fixtures/test_GFM_doublequotes.html b/tests/fixtures/test_GFM_doublequotes.html index 546fd39..1353714 100644 --- a/tests/fixtures/test_GFM_doublequotes.html +++ b/tests/fixtures/test_GFM_doublequotes.html @@ -2,10 +2,10 @@
This is code text.
 
def this_is_python():
-    """This is a docstring."""
+    """This is a docstring."""
     pass
 
-
func ThisIsGo(){
-    return
-}
+
func ThisIsGo(){
+    return
+}
 
diff --git a/tests/fixtures/test_GFM_highlight.html b/tests/fixtures/test_GFM_highlight.html index 4094325..c2cf7bb 100644 --- a/tests/fixtures/test_GFM_highlight.html +++ b/tests/fixtures/test_GFM_highlight.html @@ -4,9 +4,9 @@
def this_is_python():
     pass
 
-
func ThisIsGo(){
-    return
-}
+
func ThisIsGo(){
+    return
+}
 
An unknown code fence block
 
diff --git a/tests/fixtures/test_GFM_malicious_pre.html b/tests/fixtures/test_GFM_malicious_pre.html index 7194eee..245e17e 100644 --- a/tests/fixtures/test_GFM_malicious_pre.html +++ b/tests/fixtures/test_GFM_malicious_pre.html @@ -1,6 +1,6 @@

This is normal text.

def this_is_python():
-    """This is a docstring."""
+    """This is a docstring."""
     pass
 <script type="text/javascript">alert('I am evil.');</script>
 
diff --git a/tests/fixtures/test_rst_008.html b/tests/fixtures/test_rst_008.html index 621a70c..6a01a9d 100644 --- a/tests/fixtures/test_rst_008.html +++ b/tests/fixtures/test_rst_008.html @@ -1,15 +1,15 @@

Here is some Python code for a Dog:

-
class Dog(Animal):
-    def __init__(self, name):
-        self.name = name
+
class Dog(Animal):
+    def __init__(self, name):
+        self.name = name
 
-    def make_sound(self):
-        print('Ruff!')
+    def make_sound(self):
+        print('Ruff!')
 
-dog = Dog('Fido')
+dog = Dog('Fido')

and then here is some bash:

-
if [ "$1" = "--help" ]; then
-    echo "OK"
-fi
+
if [ "$1" = "--help" ]; then
+    echo "OK"
+fi

or click SurveyMonkey

An unknown code fence block
-- 2.39.0