[cpl-plugin-template] 31/58: Escape ' char

Ole Streicher olebole at moszumanska.debian.org
Tue Mar 31 09:23:39 UTC 2015


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

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

commit e053b3d36d78ded18bf9f4f33694407915b29a0e
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-science-commits mailing list