60 self.writeStartElement("Project") |
60 self.writeStartElement("Project") |
61 self.writeAttribute("version", projectFileFormatVersion) |
61 self.writeAttribute("version", projectFileFormatVersion) |
62 |
62 |
63 # do the language (used for spell checking) |
63 # do the language (used for spell checking) |
64 self.writeTextElement("Language", self.pdata["SPELLLANGUAGE"][0]) |
64 self.writeTextElement("Language", self.pdata["SPELLLANGUAGE"][0]) |
65 if len(self.pdata["SPELLWORDS"][0]) > 0: |
65 if self.pdata["SPELLWORDS"]: |
66 self.writeTextElement( |
66 self.writeTextElement( |
67 "ProjectWordList", |
67 "ProjectWordList", |
68 Utilities.fromNativeSeparators(self.pdata["SPELLWORDS"][0])) |
68 Utilities.fromNativeSeparators(self.pdata["SPELLWORDS"])) |
69 if len(self.pdata["SPELLEXCLUDES"][0]) > 0: |
69 if self.pdata["SPELLEXCLUDES"]: |
70 self.writeTextElement( |
70 self.writeTextElement( |
71 "ProjectExcludeList", |
71 "ProjectExcludeList", |
72 Utilities.fromNativeSeparators(self.pdata["SPELLEXCLUDES"][0])) |
72 Utilities.fromNativeSeparators(self.pdata["SPELLEXCLUDES"])) |
73 |
73 |
74 # do the hash |
74 # do the hash |
75 self.writeTextElement("Hash", self.pdata["HASH"][0]) |
75 self.writeTextElement("Hash", self.pdata["HASH"][0]) |
76 |
76 |
77 # do the programming language |
77 # do the programming language |