Commit f8ff2039 authored by Jim Fulton's avatar Jim Fulton

Get rid of tabs in generated documents.

parent cf37b295
......@@ -96,8 +96,8 @@
##############################################################################
__doc__='''Shared classes and functions
$Id: Aqueduct.py,v 1.28 1998/12/17 18:50:33 jim Exp $'''
__version__='$Revision: 1.28 $'[11:-2]
$Id: Aqueduct.py,v 1.29 1998/12/29 17:02:55 jim Exp $'''
__version__='$Revision: 1.29 $'[11:-2]
import Globals, os
from Globals import HTMLFile, Persistent
......@@ -235,9 +235,9 @@ def default_input_form(id,arguments,action='query',
string.joinfields(
map(
lambda a:
('<tr>\t<th>%s</th>\n'
'\t<td><input name="%s"'
'\n\t width=30 value="%s">'
('<tr><th>%s</th>\n'
' <td><input name="%s"\n'
' width=30 value="%s">'
'</td></tr>'
% (nicify(a[0]),
(
......@@ -286,10 +286,10 @@ def custom_default_report(id, result, action='', no_table=0,
):
columns=result._searchable_result_columns()
__traceback_info__=columns
heading=('<tr>\n%s\t</tr>' %
heading=('<tr>\n%s\n</tr>' %
string.joinfields(
map(lambda c:
'\t<th>%s</th>\n' % nicify(c['name']),
' <th>%s</th>\n' % nicify(c['name']),
columns),
''
)
......@@ -305,10 +305,10 @@ def custom_default_report(id, result, action='', no_table=0,
for c in columns:
n=c['name']
if goofy(n) >= 0: n='expr="_vars[\'%s]"' % (`'"'+n`[2:])
row.append('\t%s<!--#var %s%s-->%s\n'
row.append(' %s<!--#var %s%s-->%s\n'
% (td,n,c['type']!='s' and ' null=""' or '',_td))
row=('%s\n%s\t%s' % (tr,string.joinfields(row,delim), _tr))
row=('%s\n%s\n%s' % (tr,string.joinfields(row,delim), _tr))
return custom_default_report_src(
id=id,heading=heading,row=row,action=action,no_table=no_table)
......
......@@ -96,8 +96,8 @@
##############################################################################
__doc__='''Search Interface Wizard
$Id: Search.py,v 1.7 1998/12/16 15:25:48 jim Exp $'''
__version__='$Revision: 1.7 $'[11:-2]
$Id: Search.py,v 1.8 1998/12/29 17:01:59 jim Exp $'''
__version__='$Revision: 1.8 $'[11:-2]
from Globals import HTMLFile
from Aqueduct import custom_default_report, nicify, Args
......@@ -218,9 +218,9 @@ def default_input_form(arguments,action='query',
join(
map(
lambda a:
('<tr>\t<th>%s</th>\n'
'\t<td><input name="%s"\n'
'\t width=30 value="%s">'
('<tr><th>%s</th>\n'
' <td><input name="%s"\n'
' width=30 value="%s">'
'</td></tr>'
% (nicify(a[0]),
(
......
......@@ -9,7 +9,7 @@
</a>
<!--#/if previous-sequence-->
%(else no_table)[<table border>
%(heading)s
%(heading)s
%(else)]
<!--#/if sequence-start-->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment