diff options
author | Wynn Wolf Arbor | 2020-04-19 15:28:50 +0200 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-04-19 15:28:50 +0200 |
commit | 7ecebbbfdceb24ce4f30a8129690534ec892fcc7 (patch) | |
tree | 4d07a2d21fa6b320041c20e1b770e89f469a2b15 /dev-python/markdown2/files | |
parent | b2fe1459f03d8927e3def8e8d830478741135857 (diff) | |
download | pramantha-7ecebbbfdceb24ce4f30a8129690534ec892fcc7.tar.gz |
dev-python/markdown2: Add 2.3.8
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Diffstat (limited to 'dev-python/markdown2/files')
-rw-r--r-- | dev-python/markdown2/files/2.3.8/0001-Fixed-code-highlighting-unit-tests.patch | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/dev-python/markdown2/files/2.3.8/0001-Fixed-code-highlighting-unit-tests.patch b/dev-python/markdown2/files/2.3.8/0001-Fixed-code-highlighting-unit-tests.patch new file mode 100644 index 0000000..9a28e6b --- /dev/null +++ b/dev-python/markdown2/files/2.3.8/0001-Fixed-code-highlighting-unit-tests.patch @@ -0,0 +1,76 @@ +From 55ba78e29ac983978806970ce4b81718fe68275b Mon Sep 17 00:00:00 2001 +From: ryanvilbrandt <ryan.vilbrandt@gmail.com> +Date: Tue, 26 Nov 2019 13:54:27 -0800 +Subject: [PATCH] Fixed code highlighting unit tests + +Which broke for some reason?? +--- + test/tm-cases/fenced_code_blocks_leading_lang_space.html | 4 ++-- + test/tm-cases/fenced_code_blocks_safe_highlight.html | 4 ++-- + test/tm-cases/fenced_code_blocks_syntax_highlighting.html | 4 ++-- + test/tm-cases/fenced_code_blocks_syntax_indentation.html | 4 ++-- + test/tm-cases/issue3_bad_code_color_hack.html | 4 ++-- + 5 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/test/tm-cases/fenced_code_blocks_leading_lang_space.html b/test/tm-cases/fenced_code_blocks_leading_lang_space.html +index 8f7a090..a61524b 100644 +--- a/test/tm-cases/fenced_code_blocks_leading_lang_space.html ++++ b/test/tm-cases/fenced_code_blocks_leading_lang_space.html +@@ -1,3 +1,3 @@ +-<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="bp">True</span><span class="p">:</span> +- <span class="k">print</span> <span class="s2">"hi"</span> ++<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="kc">True</span><span class="p">:</span> ++ <span class="nb">print</span> <span class="s2">"hi"</span> + </code></pre></div> +diff --git a/test/tm-cases/fenced_code_blocks_safe_highlight.html b/test/tm-cases/fenced_code_blocks_safe_highlight.html +index df5bbec..a08985a 100644 +--- a/test/tm-cases/fenced_code_blocks_safe_highlight.html ++++ b/test/tm-cases/fenced_code_blocks_safe_highlight.html +@@ -1,5 +1,5 @@ +-<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="bp">True</span><span class="p">:</span> +- <span class="k">print</span> <span class="s2">"hi"</span> ++<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="kc">True</span><span class="p">:</span> ++ <span class="nb">print</span> <span class="s2">"hi"</span> + </code></pre></div> + + <p>That's using the <em>fenced-code-blocks</em> extra with Python +diff --git a/test/tm-cases/fenced_code_blocks_syntax_highlighting.html b/test/tm-cases/fenced_code_blocks_syntax_highlighting.html +index df5bbec..a08985a 100644 +--- a/test/tm-cases/fenced_code_blocks_syntax_highlighting.html ++++ b/test/tm-cases/fenced_code_blocks_syntax_highlighting.html +@@ -1,5 +1,5 @@ +-<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="bp">True</span><span class="p">:</span> +- <span class="k">print</span> <span class="s2">"hi"</span> ++<div class="codehilite"><pre><span></span><code><span class="k">if</span> <span class="kc">True</span><span class="p">:</span> ++ <span class="nb">print</span> <span class="s2">"hi"</span> + </code></pre></div> + + <p>That's using the <em>fenced-code-blocks</em> extra with Python +diff --git a/test/tm-cases/fenced_code_blocks_syntax_indentation.html b/test/tm-cases/fenced_code_blocks_syntax_indentation.html +index 11a7c24..37b5723 100644 +--- a/test/tm-cases/fenced_code_blocks_syntax_indentation.html ++++ b/test/tm-cases/fenced_code_blocks_syntax_indentation.html +@@ -1,5 +1,5 @@ + <div class="codehilite"><pre><span></span><code><span class="k">def</span> <span class="nf">foo</span><span class="p">():</span> +- <span class="k">print</span> <span class="s2">"foo"</span> ++ <span class="nb">print</span> <span class="s2">"foo"</span> + +- <span class="k">print</span> <span class="s2">"bar"</span> ++ <span class="nb">print</span> <span class="s2">"bar"</span> + </code></pre></div> +diff --git a/test/tm-cases/issue3_bad_code_color_hack.html b/test/tm-cases/issue3_bad_code_color_hack.html +index 46f329a..8aedb76 100644 +--- a/test/tm-cases/issue3_bad_code_color_hack.html ++++ b/test/tm-cases/issue3_bad_code_color_hack.html +@@ -7,6 +7,6 @@ + <p>Some python code:</p> + + <div class="codehilite"><pre><span></span><code><span class="c1"># комментарий</span> +-<span class="k">if</span> <span class="bp">True</span><span class="p">:</span> +- <span class="k">print</span> <span class="s2">"hi"</span> ++<span class="k">if</span> <span class="kc">True</span><span class="p">:</span> ++ <span class="nb">print</span> <span class="s2">"hi"</span> + </code></pre></div> +-- +2.26.1 + |