[Debian-astro-commits] [cpl-plugin-template] 37/81: Escape ' char

Ole Streicher olebole at moszumanska.debian.org
Mon Jul 20 12:08:29 UTC 2015


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository cpl-plugin-template.

commit 8970c0594a596e20bf7373dbe01d0f7dc853a8bb
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Sat Oct 26 14:05:58 2013 +0200

    Escape ' char
---
 debian/create_manpage.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/create_manpage.py b/debian/create_manpage.py
index 81ccd12..d9f77af 100644
--- a/debian/create_manpage.py
+++ b/debian/create_manpage.py
@@ -89,7 +89,7 @@ def seealso(recipe, template):
 def manpage(recipe):
     description = recipe.description[1] 
     description = re.sub("-"*40+"+", "", description) \
-                    .replace(".\n", ".\n.PP\n")
+                    .replace(".\n", ".\n.PP\n").replace("'", "\\'")
     description = re.sub("\n([A-Z][A-Z 0-9]+):?\n----+", "\n.SS \\1", description)
     return man_template.format(name = recipe.__name__,
                                NAME = recipe.__name__.upper(),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/cpl-plugin-template.git



More information about the Debian-astro-commits mailing list