comparison MoinMoin/formatter/text_html.py @ 5297:44dca95e51ab

parser highlight: enables link to help page for messages
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 20 Nov 2009 09:28:49 +0100
parents a83a65fcbb69
children d57b74bc4cbd
comparison
equal deleted inserted replaced
5296:5830f61d4718 5297:44dca95e51ab
886 self._code_area_state = [None, show, start, step, start] 886 self._code_area_state = [None, show, start, step, start]
887 887
888 if msg: 888 if msg:
889 attr = {'class': 'codemsg'} 889 attr = {'class': 'codemsg'}
890 res.append(self._open('div', attr={'class': 'codemsg'})) 890 res.append(self._open('div', attr={'class': 'codemsg'}))
891 res.append(self.text(msg)) 891 # the msg string is not escaped
892 res.append(msg)
892 res.append(self._close('div')) 893 res.append(self._close('div'))
893 894
894 # Open the code div - using left to right always! 895 # Open the code div - using left to right always!
895 attr = {'class': 'codearea', 'lang': 'en', 'dir': 'ltr'} 896 attr = {'class': 'codearea', 'lang': 'en', 'dir': 'ltr'}
896 res.append(self._open('div', attr=attr)) 897 res.append(self._open('div', attr=attr))