From 9688e7a1a3e27929f46c4836589b029b74ee5338 Mon Sep 17 00:00:00 2001 From: grubert Date: Mon, 26 May 2003 07:20:52 +0000 Subject: [PATCH] Attribution support. git-svn-id: https://docutils.svn.sourceforge.net/svnroot/docutils/trunk/docutils@1349 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/writers/latex2e.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docutils/writers/latex2e.py b/docutils/writers/latex2e.py index a3ee14a60..fcca145d5 100644 --- a/docutils/writers/latex2e.py +++ b/docutils/writers/latex2e.py @@ -1144,6 +1144,13 @@ class LaTeXTranslator(nodes.NodeVisitor): self.body.append('\\end{sffamily}\n\\end{center}\n'); + def visit_attribution(self, node): + # latex: mdash is "---" + self.body.append('\n--- ') + + def depart_attribution(self, node): + self.body.append('\n') + def visit_status(self, node): self.visit_docinfo_item(node, 'status') -- 2.11.4.GIT