~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_man.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-14 10:29:44 UTC
  • mto: This revision was merged to the branch mainline in revision 6500.
  • Revision ID: jelmer@samba.org-20120314102944-iwhaf8cx0d08xhe3
Properly format apostrophes in manual page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    """Escapes strings for man page compatibility"""
59
59
    result = string.replace("\\","\\\\")
60
60
    result = result.replace("`","\\`")
61
 
    result = result.replace("'","\\'")
 
61
    result = result.replace("'","\\*(Aq")
62
62
    result = result.replace("-","\\-")
63
63
    return result
64
64
 
165
165
.\\\"
166
166
.\\\" Generation time: %(timestamp)s
167
167
.\\\"
 
168
 
 
169
.ie \\n(.g .ds Aq \\(aq
 
170
.el .ds Aq '
168
171
"""
169
172
 
170
173