示例#1
0
 def html_content(self):
     content = self.content
     if CONFIG.SUMMARY_DELIMETER.search(content):
         content = CONFIG.SUMMARY_DELIMETER.sub('', content, 1)
     elif CONFIG.SUMMARY_DELIMETER2.search(content):
         content = CONFIG.SUMMARY_DELIMETER2.split(content, 1)[1]
     return format_content(content, self.format)
示例#2
0
 def html_content(self):
     content = self.content
     if CONFIG.SUMMARY_DELIMETER.search(content):
         content = CONFIG.SUMMARY_DELIMETER.sub('', content, 1)
     elif CONFIG.SUMMARY_DELIMETER2.search(content):
         content = CONFIG.SUMMARY_DELIMETER2.split(content, 1)[1]
     return format_content(content, self.format)
示例#3
0
 def html_summary(self):
     content = self.content
     if CONFIG.SUMMARY_DELIMETER.search(content):
         summary = CONFIG.SUMMARY_DELIMETER.split(content, 1)[0]
     elif CONFIG.SUMMARY_DELIMETER2.search(content):
         summary = CONFIG.SUMMARY_DELIMETER2.split(content, 1)[0]
     else:
         summary = content
     return format_content(summary, self.format)
示例#4
0
 def html_summary(self):
     content = self.content
     if CONFIG.SUMMARY_DELIMETER.search(content):
         summary = CONFIG.SUMMARY_DELIMETER.split(content, 1)[0]
     elif CONFIG.SUMMARY_DELIMETER2.search(content):
         summary = CONFIG.SUMMARY_DELIMETER2.split(content, 1)[0]
     else:
         summary = content
     return format_content(summary, self.format)
示例#5
0
 def html_content(self):
     return format_content(self.content, self.format)
示例#6
0
 def html_content(self):
     return format_content(self.content, self.format)