Commit f8ff2039 authored by Jim Fulton's avatar Jim Fulton

Get rid of tabs in generated documents.

parent cf37b295
...@@ -96,8 +96,8 @@ ...@@ -96,8 +96,8 @@
############################################################################## ##############################################################################
__doc__='''Shared classes and functions __doc__='''Shared classes and functions
$Id: Aqueduct.py,v 1.28 1998/12/17 18:50:33 jim Exp $''' $Id: Aqueduct.py,v 1.29 1998/12/29 17:02:55 jim Exp $'''
__version__='$Revision: 1.28 $'[11:-2] __version__='$Revision: 1.29 $'[11:-2]
import Globals, os import Globals, os
from Globals import HTMLFile, Persistent from Globals import HTMLFile, Persistent
...@@ -235,9 +235,9 @@ def default_input_form(id,arguments,action='query', ...@@ -235,9 +235,9 @@ def default_input_form(id,arguments,action='query',
string.joinfields( string.joinfields(
map( map(
lambda a: lambda a:
('<tr>\t<th>%s</th>\n' ('<tr><th>%s</th>\n'
'\t<td><input name="%s"' ' <td><input name="%s"\n'
'\n\t width=30 value="%s">' ' width=30 value="%s">'
'</td></tr>' '</td></tr>'
% (nicify(a[0]), % (nicify(a[0]),
( (
...@@ -286,10 +286,10 @@ def custom_default_report(id, result, action='', no_table=0, ...@@ -286,10 +286,10 @@ def custom_default_report(id, result, action='', no_table=0,
): ):
columns=result._searchable_result_columns() columns=result._searchable_result_columns()
__traceback_info__=columns __traceback_info__=columns
heading=('<tr>\n%s\t</tr>' % heading=('<tr>\n%s\n</tr>' %
string.joinfields( string.joinfields(
map(lambda c: map(lambda c:
'\t<th>%s</th>\n' % nicify(c['name']), ' <th>%s</th>\n' % nicify(c['name']),
columns), columns),
'' ''
) )
...@@ -305,10 +305,10 @@ def custom_default_report(id, result, action='', no_table=0, ...@@ -305,10 +305,10 @@ def custom_default_report(id, result, action='', no_table=0,
for c in columns: for c in columns:
n=c['name'] n=c['name']
if goofy(n) >= 0: n='expr="_vars[\'%s]"' % (`'"'+n`[2:]) 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)) % (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( return custom_default_report_src(
id=id,heading=heading,row=row,action=action,no_table=no_table) id=id,heading=heading,row=row,action=action,no_table=no_table)
......
...@@ -96,8 +96,8 @@ ...@@ -96,8 +96,8 @@
############################################################################## ##############################################################################
__doc__='''Search Interface Wizard __doc__='''Search Interface Wizard
$Id: Search.py,v 1.7 1998/12/16 15:25:48 jim Exp $''' $Id: Search.py,v 1.8 1998/12/29 17:01:59 jim Exp $'''
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
from Globals import HTMLFile from Globals import HTMLFile
from Aqueduct import custom_default_report, nicify, Args from Aqueduct import custom_default_report, nicify, Args
...@@ -218,9 +218,9 @@ def default_input_form(arguments,action='query', ...@@ -218,9 +218,9 @@ def default_input_form(arguments,action='query',
join( join(
map( map(
lambda a: lambda a:
('<tr>\t<th>%s</th>\n' ('<tr><th>%s</th>\n'
'\t<td><input name="%s"\n' ' <td><input name="%s"\n'
'\t width=30 value="%s">' ' width=30 value="%s">'
'</td></tr>' '</td></tr>'
% (nicify(a[0]), % (nicify(a[0]),
( (
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</a> </a>
<!--#/if previous-sequence--> <!--#/if previous-sequence-->
%(else no_table)[<table border> %(else no_table)[<table border>
%(heading)s %(heading)s
%(else)] %(else)]
<!--#/if sequence-start--> <!--#/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