Files
gentoo/dev-python/m2r/files/m2r-0.2.1-upstream-fix.patch
T
Patrick McLean 0bc63330fa dev-python/m2r-0.2.1: bump, add py38 and pypy3
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
2019-11-27 14:50:12 -08:00

24 lines
641 B
Diff

From c78db2aa91787df6973ad6400208707c7ecf4b12 Mon Sep 17 00:00:00 2001
From: "Ethan \"Soron\" Kaminski" <ethan.kaminski@gmail.com>
Date: Thu, 25 Apr 2019 12:56:14 +0800
Subject: [PATCH] Remove a trailing newline after `.rst` directives (fix issue
#35)
---
m2r.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/m2r.py b/m2r.py
index 897338d..74c8c98 100644
--- a/m2r.py
+++ b/m2r.py
@@ -507,7 +507,7 @@ def eol_literal_marker(self, marker):
return marker
def directive(self, text):
- return '\n' + text + '\n'
+ return '\n' + text
def rest_code_block(self):
return '\n\n'