Switch to unified view

a/src/filters/rclxls.py b/src/filters/rclxls.py
...
...
6
import re
6
import re
7
import sys
7
import sys
8
import os
8
import os
9
import xml.sax
9
import xml.sax
10
10
11
# Processing the output from unrtf
12
class XLSProcessData:
11
class XLSProcessData:
13
    def __init__(self, em):
12
    def __init__(self, em):
14
        self.em = em
13
        self.em = em
15
        self.out = ""
14
        self.out = ""
16
        self.gotdata = 0
15
        self.gotdata = 0
17
        self.xmldata = ""
16
        self.xmldata = ""
18
        
17
        
19
    # Some versions of unrtf put out a garbled charset line.
20
    # Apart from this, we pass the data untouched.
21
    def takeLine(self, line):
18
    def takeLine(self, line):
22
        if not self.gotdata:
19
        if not self.gotdata:
23
            self.out += '''<html><head>''' + \
20
            self.out += '''<html><head>''' + \
24
                        '''<meta http-equiv="Content-Type" ''' + \
21
                        '''<meta http-equiv="Content-Type" ''' + \
25
                        '''content="text/html;charset=UTF-8">''' + \
22
                        '''content="text/html;charset=UTF-8">''' + \