Attachment 'text_moin_wiki.diff'

Download

   1 --- text_moin_wiki_old.py	2007-02-28 16:19:38.000000000 +0100
   2 +++ text_moin_wiki.py	2007-03-01 19:23:54.000000000 +0100
   3 @@ -931,6 +931,7 @@
   4              strings, outputting verbatim any intervening text.
   5          """
   6          self.formatter = formatter
   7 +        _ = self._
   8          self.hilite_re = self.formatter.page.hilite_re
   9  
  10          # prepare regex patterns
  11 @@ -965,7 +966,11 @@
  12              if 'comment' in self.wrapping_div_class.split():
  13                  # show comment divs depending on user profile (and wiki configuration)
  14                  div_kw['style'] = self.request.user.show_comments and "display:''" or "display:none"
  15 -            self.request.write(self.formatter.div(1, **div_kw))
  16 +                self.request.write(self.formatter.div(1, **div_kw))
  17 +                div_kw = {'css_class': 'screenreader_info', }
  18 +                self.request.write(self.formatter.text(_('[comment section begin]'), **div_kw))
  19 +            else:
  20 +                self.request.write(self.formatter.div(1, **div_kw))
  21  
  22          # Main loop
  23          for line in self.lines:
  24 @@ -1122,6 +1127,9 @@
  25          if self.in_table: self.request.write(self.formatter.table(0))
  26  
  27          if self.wrapping_div_class:
  28 +            if 'comment' in self.wrapping_div_class.split():
  29 +                div_kw = {'css_class': 'screenreader_info', }
  30 +                self.request.write(self.formatter.text(_('[comment section end]'), **div_kw))
  31              self.request.write(self.formatter.div(0))
  32  
  33      # Private helpers ------------------------------------------------------------

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2007-03-01 18:49:58, 1.6 KB) [[attachment:text_moin_wiki.diff]]
  • [get | view] (2007-05-05 21:34:57, 2.1 KB) [[attachment:text_moin_wiki2.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.