diff -r bc74f74a95f5 -r 175b36822cc9 E5XML/ProjectWriter.py --- a/E5XML/ProjectWriter.py Wed Aug 17 12:32:58 2016 +0200 +++ b/E5XML/ProjectWriter.py Wed Aug 17 17:52:52 2016 +0200 @@ -85,10 +85,10 @@ # do description if self.pdata["DESCRIPTION"]: - self.writeTextElement("Description", self.pdata["DESCRIPTION"][0]) + self.writeTextElement("Description", self.pdata["DESCRIPTION"]) # do version, author and email - self.writeTextElement("Version", self.pdata["VERSION"][0]) + self.writeTextElement("Version", self.pdata["VERSION"]) self.writeTextElement("Author", self.pdata["AUTHOR"][0]) self.writeTextElement("Email", self.pdata["EMAIL"][0]) @@ -97,19 +97,19 @@ self.writeTextElement( "TranslationPattern", Utilities.fromNativeSeparators( - self.pdata["TRANSLATIONPATTERN"][0])) + self.pdata["TRANSLATIONPATTERN"])) # do the binary translations path if self.pdata["TRANSLATIONSBINPATH"]: self.writeTextElement( "TranslationsBinPath", Utilities.fromNativeSeparators( - self.pdata["TRANSLATIONSBINPATH"][0])) + self.pdata["TRANSLATIONSBINPATH"])) # do the eol setting - if self.pdata["EOL"] and self.pdata["EOL"][0]: + if self.pdata["EOL"] >= 0: self.writeEmptyElement("Eol") - self.writeAttribute("index", str(int(self.pdata["EOL"][0]))) + self.writeAttribute("index", str(int(self.pdata["EOL"]))) # do the sources self.writeStartElement("Sources") @@ -165,16 +165,16 @@ if self.pdata["MAINSCRIPT"]: self.writeTextElement( "MainScript", - Utilities.fromNativeSeparators(self.pdata["MAINSCRIPT"][0])) + Utilities.fromNativeSeparators(self.pdata["MAINSCRIPT"])) # do the vcs stuff self.writeStartElement("Vcs") if self.pdata["VCS"]: - self.writeTextElement("VcsType", self.pdata["VCS"][0]) + self.writeTextElement("VcsType", self.pdata["VCS"]) if self.pdata["VCSOPTIONS"]: - self.writeBasics("VcsOptions", self.pdata["VCSOPTIONS"][0]) + self.writeBasics("VcsOptions", self.pdata["VCSOPTIONS"]) if self.pdata["VCSOTHERDATA"]: - self.writeBasics("VcsOtherData", self.pdata["VCSOTHERDATA"][0]) + self.writeBasics("VcsOtherData", self.pdata["VCSOTHERDATA"]) self.writeEndElement() # do the filetype associations