--- a/i18n/hggettext Sun Aug 13 15:20:16 2017 +0900
+++ b/i18n/hggettext Tue Aug 15 19:27:24 2017 +0900
@@ -119,6 +119,8 @@
for func, rstrip in functions:
if func.__doc__:
+ docobj = func # this might be a proxy to provide formatted doc
+ func = getattr(func, '_origfunc', func)
funcmod = inspect.getmodule(func)
extra = ''
if funcmod.__package__ == funcmod.__name__:
@@ -128,8 +130,8 @@
src = inspect.getsource(func)
name = "%s.%s" % (actualpath, func.__name__)
lineno = inspect.getsourcelines(func)[1]
- doc = func.__doc__
- origdoc = getattr(func, '_origdoc', '')
+ doc = docobj.__doc__
+ origdoc = getattr(docobj, '_origdoc', '')
if rstrip:
doc = doc.rstrip()
origdoc = origdoc.rstrip()