summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-05-12 01:56:01 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-05-12 01:56:01 +0000
commit85bfc42d8922f37cbdec9251e928eac07e8f1b90 (patch)
tree41d316d91dd8a34ced2d6d50438d975e2b988021
parentc8857fa22d1f27f759a1a58e88b4200deb7e21c3 (diff)
downloaddocutils-85bfc42d8922f37cbdec9251e928eac07e8f1b90.tar.gz
some clean-up
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3336 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--docutils/docutils/writers/newlatex2e.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/docutils/docutils/writers/newlatex2e.py b/docutils/docutils/writers/newlatex2e.py
index 0aa011f60..7f8baaf3f 100644
--- a/docutils/docutils/writers/newlatex2e.py
+++ b/docutils/docutils/writers/newlatex2e.py
@@ -494,10 +494,6 @@ class LaTeXTranslator(nodes.SparseNodeVisitor):
def visit_citation(self, node):
self.process_backlinks(node, 'citation')
- def visit_table(self, node):
- # Everything's handled in tgroup.
- pass
-
def before_table(self, node):
# A tables contains exactly one tgroup. See before_tgroup.
pass
@@ -512,6 +508,8 @@ class LaTeXTranslator(nodes.SparseNodeVisitor):
del node[:len(widths)]
tablespec = '|'
for w in widths:
+ # 0.93 is probably wrong in many cases. XXX Find a
+ # solution which works *always*.
tablespec += r'p{%s\linewidth}|' % (0.93 * w /
max(total_width, 60))
self.append(r'\Dmaketable{%s}{' % tablespec)