[Moin-user] </center> in make_index_key

bragiba at simi.is bragiba at simi.is
Thu Jan 31 03:31:04 EST 2002


I use make_index_key in one of my macros to create an index.  The
make_index puts the html end center markup at the end of the
additional_html markup.
This always forces all your additional html to be centered which is not
what I want.  If I want my additional html to be centered I can do that
myself but I cannot
force the end center tag back.....

Can you please fix this?      My suggestion for a fix is:

    s = s + string.join(links, '|') + '</center><p>'
    s = s + additional_html

def _make_index_key(index_letters, additional_html=""):
    index_letters.sort()
    s = '<p><center>'
    links = map(lambda ch:
                    '<a href="#%s">%s</a>' %
                    (wikiutil.quoteWikiname(ch), string.replace(ch, '~',
'Others')),
                index_letters)
    s = s + string.join(links, ' | ')
    s = s + additional_html + '</center><p>'
    return s

Með kveðju/Best Regards
Bragi Baldursson
GPRS Kerfisverkfræðingur/GPRS Systems Engineer
Sími/Tel.:  550 63 08    mailto:bragiba at siminn.is
Fax:  550 63 39    www:http://www.siminn.is
Gsm:   892 63 08

- Síminn auðveldar samskipti -

_______________________________________________________________________
Þessi tölvupóstur og viðhengi hans gætu innihaldið trúnaðarupplýsingar
eingöngu ætlaðar þeim sem hann er stílaður á. Efni tölvupóstsins og
viðhengi er á ábyrgð sendanda ef það tengist ekki starfsemi Símans.
Sjá nánar: http://www.siminn.is/um_okkur/almennt/tolvupostur.asp

This e-mail and its attachments may contain confidential and privileged
information only intended for the person or entity to which it is
addressed.
Further information: http://www.siminn.is/english/about_us/email.asp
_______________________________________________________________________


More information about the Moin-user mailing list