Thank worked!

======   controller  =================
def NBSP(n=1) :
  #
  # produce non-breaking spaces
  #
  return XML(' ' * n)

=========  view  ===================
  if form.accepts(request.vars, session):
    response.flash = TABLE(TR(' '),TR(' '),TR(' '), TR( NBSP(15) ,
'Center', NBSP(15) ) , TR(' '), TR(' '), TR(' ') )

Thanks


On May 30, 12:10 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> I'd rather avoid to pollute the name space too much. You can do
>
> def NBSP(n=1): return XML('&nbsp;'*n)
>
> On May 30, 11:32 am, NetAdmin <mr.netad...@gmail.com> wrote:
>
> > It would be nice to have a non-breaking space html-helper that uses
> > the following syntax...
>
> > NBSP(),  or NBSP(5)
>
> > Any Takers?

Reply via email to