コード例 #1
0
ファイル: excel.py プロジェクト: bubbas/indico
 def excelFormatting(text):
     if text is None:
         text = ""
     if text.strip() != "":
         text = utils.utf8Tolatin1(text)
         text = text.replace("\x0d", "")
     return text
コード例 #2
0
 def excelFormatting(text):
     if text is None:
         text = ""
     if text.strip() != "":
         text = utils.utf8Tolatin1(text)
         text = text.replace('\x0d', '')
     return text
コード例 #3
0
ファイル: excel.py プロジェクト: lukasnellen/indico
 def excelFormatting(text):
     if text.strip() != "":
         text = utils.utf8Tolatin1(text)
         text = text.replace('"', '""')
         text = "\"%s\"" % text
     return text
コード例 #4
0
ファイル: excel.py プロジェクト: davidmorrison/indico
 def excelFormatting(text):
     if text.strip()!="":
         text=utils.utf8Tolatin1(text)
         text=text.replace('"','""')
         text="\"%s\""%text
     return text