doc/hgmanpage.py
changeset 51699 ca7bde5dbafb
parent 51696 7f0cb9ee0534
child 52639 9db77d46de79
equal deleted inserted replaced
51698:b0a4de6c14f8 51699:ca7bde5dbafb
    93 ..
    93 ..
    94 """
    94 """
    95 
    95 
    96 
    96 
    97 class Writer(writers.Writer):
    97 class Writer(writers.Writer):
    98 
       
    99     supported = 'manpage'
    98     supported = 'manpage'
   100     """Formats this writer supports."""
    99     """Formats this writer supports."""
   101 
   100 
   102     output = None
   101     output = None
   103     """Final translated form of `document`."""
   102     """Final translated form of `document`."""
   295             (u'-', u'\\-'),
   294             (u'-', u'\\-'),
   296             (u"'", u'\\(aq'),
   295             (u"'", u'\\(aq'),
   297             (u'´', u"\\'"),
   296             (u'´', u"\\'"),
   298             (u'`', u'\\(ga'),
   297             (u'`', u'\\(ga'),
   299         ]
   298         ]
   300         for (in_char, out_markup) in replace_pairs:
   299         for in_char, out_markup in replace_pairs:
   301             text = text.replace(in_char, out_markup)
   300             text = text.replace(in_char, out_markup)
   302         # unicode
   301         # unicode
   303         text = self.deunicode(text)
   302         text = self.deunicode(text)
   304         if self._in_literal:
   303         if self._in_literal:
   305             # prevent interpretation of "." at line start
   304             # prevent interpretation of "." at line start