diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-04-04 18:48:10 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-04-04 18:48:10 +0000 |
| commit | cebc7db97e45e515d92f39837a73ab9c28baa942 (patch) | |
| tree | ba8ead1c3072a150e557fec8305cdbf6daa6d157 /docutils | |
| parent | 4d259e9fb712f03443afa11d4b31361c9b44e537 (diff) | |
| download | docutils-cebc7db97e45e515d92f39837a73ab9c28baa942.tar.gz | |
Apply patch #160: move macro defs above .TH (thanks Willie and sorry for the delay).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8664 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rw-r--r-- | docutils/HISTORY.txt | 4 | ||||
| -rw-r--r-- | docutils/docutils/writers/manpage.py | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/docutils/HISTORY.txt b/docutils/HISTORY.txt index 7546ed412..dad7ba447 100644 --- a/docutils/HISTORY.txt +++ b/docutils/HISTORY.txt @@ -17,6 +17,10 @@ Changes Since 0.17 ================== +* manpage writer + + - Apply patch #160: move macro defs above .TH (thanks Willie and sorry for the delay). + Release 0.17 (2021-04-03) ========================= diff --git a/docutils/docutils/writers/manpage.py b/docutils/docutils/writers/manpage.py index 3185eb42c..be6dde55e 100644 --- a/docutils/docutils/writers/manpage.py +++ b/docutils/docutils/writers/manpage.py @@ -385,10 +385,11 @@ class Translator(nodes.NodeVisitor): """append header with .TH and .SH NAME""" # NOTE before everything # .TH title_upper section date source manual + # BUT macros before .TH for whatis database generators. if self.header_written: return - self.head.append(self.header()) self.head.append(MACRO_DEF) + self.head.append(self.header()) self.header_written = 1 def visit_address(self, node): |
