23 Constructor |
23 Constructor |
24 |
24 |
25 @param device reference to the I/O device to read from (QIODevice) |
25 @param device reference to the I/O device to read from (QIODevice) |
26 """ |
26 """ |
27 QXmlStreamReader.__init__(self, device) |
27 QXmlStreamReader.__init__(self, device) |
28 |
|
29 self.NEWPARA = chr(0x2029) |
|
30 self.NEWLINE = chr(0x2028) |
|
31 |
|
32 def decodedNewLines(self, text): |
|
33 """ |
|
34 Public method to decode newlines and paragraph breaks. |
|
35 |
|
36 @param text text to decode (string) |
|
37 """ |
|
38 return text.replace(self.NEWPARA, "\n\n").replace(self.NEWLINE, "\n") |
|
39 |
28 |
40 def toBool(self, value): |
29 def toBool(self, value): |
41 """ |
30 """ |
42 Public method to convert the given value to bool. |
31 Public method to convert the given value to bool. |
43 |
32 |