[Python-modules-commits] r21577 - in packages/python-markdown/trunk/debian (4 files)

mitya57-guest at users.alioth.debian.org mitya57-guest at users.alioth.debian.org
Sat May 5 11:21:20 UTC 2012


    Date: Saturday, May 5, 2012 @ 11:21:17
  Author: mitya57-guest
Revision: 21577

Add debian/patches/git_fix_inline_html.patch to fix issues with inline html handling (closes: #646552)

Added:
  packages/python-markdown/trunk/debian/patches/
  packages/python-markdown/trunk/debian/patches/git_fix_inline_html.patch
  packages/python-markdown/trunk/debian/patches/series
Modified:
  packages/python-markdown/trunk/debian/changelog

Modified: packages/python-markdown/trunk/debian/changelog
===================================================================
--- packages/python-markdown/trunk/debian/changelog	2012-05-05 07:41:30 UTC (rev 21576)
+++ packages/python-markdown/trunk/debian/changelog	2012-05-05 11:21:17 UTC (rev 21577)
@@ -4,8 +4,10 @@
   * Make module packages suggest the doc package
   * Add doc-base file
   * Run tests during build
+  * Add debian/patches/git_fix_inline_html.patch to fix issues with
+    inline html handling (closes: #646552)
 
- -- Dmitry Shachnev <mitya57 at gmail.com>  Fri, 04 May 2012 16:25:47 +0400
+ -- Dmitry Shachnev <mitya57 at gmail.com>  Sat, 05 May 2012 15:15:25 +0400
 
 python-markdown (2.1.1-2) unstable; urgency=low
 

Added: packages/python-markdown/trunk/debian/patches/git_fix_inline_html.patch
===================================================================
--- packages/python-markdown/trunk/debian/patches/git_fix_inline_html.patch	                        (rev 0)
+++ packages/python-markdown/trunk/debian/patches/git_fix_inline_html.patch	2012-05-05 11:21:17 UTC (rev 21577)
@@ -0,0 +1,18 @@
+Description: Properly identify right tags in raw html
+Origin: https://github.com/waylan/Python-Markdown/commit/07f2057734
+Bug: https://github.com/waylan/Python-Markdown/issues/75
+Bug-Debian: http://bugs.debian.org/646552
+
+diff --git a/markdown/preprocessors.py b/markdown/preprocessors.py
+index c0f0034..f20f040 100644
+--- a/markdown/preprocessors.py
++++ b/markdown/preprocessors.py
+@@ -116,7 +116,7 @@ class HtmlBlockPreprocessor(Preprocessor):
+         if (right_tag == "--" and left_tag == "--"):
+             return True
+         elif left_tag == right_tag[1:] \
+-            and right_tag[0] != "<":
++            and right_tag[0] == "/":
+             return True
+         else:
+             return False

Added: packages/python-markdown/trunk/debian/patches/series
===================================================================
--- packages/python-markdown/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-markdown/trunk/debian/patches/series	2012-05-05 11:21:17 UTC (rev 21577)
@@ -0,0 +1 @@
+git_fix_inline_html.patch




More information about the Python-modules-commits mailing list