示例#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
 def excelFormatting(text):
     if text.strip() != "":
         text = utils.utf8Tolatin1(text)
         text = text.replace('"', '""')
         text = "\"%s\"" % text
     return text
示例#4
0
 def excelFormatting(text):
     if text.strip()!="":
         text=utils.utf8Tolatin1(text)
         text=text.replace('"','""')
         text="\"%s\""%text
     return text