Attachment 'text_gedit.patch'
Download 1 diff -r f8e4e84525e8 MoinMoin/converter/text_html_text_moin_wiki.py
2 --- a/MoinMoin/converter/text_html_text_moin_wiki.py Mon Jan 05 23:23:54 2009 +0100
3 +++ b/MoinMoin/converter/text_html_text_moin_wiki.py Tue Jan 06 01:11:10 2009 +0100
4 @@ -630,7 +630,7 @@
5 name = i.localName
6 if name == 'dt':
7 before, indent, markup = self._get_list_item_markup(node, i)
8 - self.text.extend([before, indent])
9 + #self.text.extend([before, indent])
10 text = self.node_list_text_only(i.childNodes)
11 self.text.append(text.replace("\n", " "))
12 elif name == 'dd':
13 @@ -643,7 +643,7 @@
14 self.text.append(self.new_line_dont_remove)
15
16 def process_list(self, node):
17 - self.depth += 1
18 + #self.depth += 1
19 for i in node.childNodes:
20 if i.nodeType == Node.ELEMENT_NODE:
21 name = i.localName
22 @@ -657,7 +657,7 @@
23 self.process_dl(i)
24 else:
25 raise ConvertError("Illegal list element %s" % i.localName)
26 - self.depth -= 1
27 + #self.depth -= 1
28 if self.depth == 0:
29 self.text.append(self.new_line_dont_remove)
30
31 diff -r f8e4e84525e8 MoinMoin/formatter/text_gedit.py
32 --- a/MoinMoin/formatter/text_gedit.py Mon Jan 05 23:23:54 2009 +0100
33 +++ b/MoinMoin/formatter/text_gedit.py Tue Jan 06 01:11:10 2009 +0100
34 @@ -16,6 +16,9 @@
35
36 class Formatter(text_html.Formatter):
37 """ Send HTML data for the GUI editor """
38 +
39 + def _newline(self):
40 + return "\n"
41
42 # Block elements ####################################################
43
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.You are not allowed to attach a file to this page.