[cpl-plugin-giraf] 07/15: Escape ' char

Ole Streicher olebole-guest at alioth.debian.org
Sat Oct 26 12:52:22 UTC 2013


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

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

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-science/packages/cpl-plugin-giraf.git



More information about the debian-science-commits mailing list