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)
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)
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)
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)
def html_content(self): return format_content(self.content, self.format)
def html_content(self): return format_content(self.content, self.format)