comparison MoinMoin/formatter/text_html.py @ 5298:d57b74bc4cbd

formatter: text_html comment moved to docstring
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 20 Nov 2009 09:49:05 +0100
parents 44dca95e51ab
children b86af2e26465
comparison
equal deleted inserted replaced
5297:44dca95e51ab 5298:d57b74bc4cbd
870 Note this is not like most formatter methods, it can not take any 870 Note this is not like most formatter methods, it can not take any
871 extra keyword arguments. 871 extra keyword arguments.
872 872
873 Call once with on=1 to start the region, and a second time 873 Call once with on=1 to start the region, and a second time
874 with on=0 to end it. 874 with on=0 to end it.
875
876 the msg string is not escaped
875 """ 877 """
876 _ = self.request.getText 878 _ = self.request.getText
877 res = [] 879 res = []
878 if on: 880 if on:
879 code_id = self.sanitize_to_id('CA-%s' % code_id) 881 code_id = self.sanitize_to_id('CA-%s' % code_id)
886 self._code_area_state = [None, show, start, step, start] 888 self._code_area_state = [None, show, start, step, start]
887 889
888 if msg: 890 if msg:
889 attr = {'class': 'codemsg'} 891 attr = {'class': 'codemsg'}
890 res.append(self._open('div', attr={'class': 'codemsg'})) 892 res.append(self._open('div', attr={'class': 'codemsg'}))
891 # the msg string is not escaped
892 res.append(msg) 893 res.append(msg)
893 res.append(self._close('div')) 894 res.append(self._close('div'))
894 895
895 # Open the code div - using left to right always! 896 # Open the code div - using left to right always!
896 attr = {'class': 'codearea', 'lang': 'en', 'dir': 'ltr'} 897 attr = {'class': 'codearea', 'lang': 'en', 'dir': 'ltr'}