Switch to unified view

a/ForgeBlog/forgeblog/model/blog.py b/ForgeBlog/forgeblog/model/blog.py
...
...
82
    def html_text(self):
82
    def html_text(self):
83
        return g.markdown.convert(self.text)
83
        return g.markdown.convert(self.text)
84
84
85
    @property
85
    @property
86
    def html_text_preview(self):
86
    def html_text_preview(self):
87
        indicator = '...[read more](%s)' % self.url()
87
        return g.markdown.convert(h.text.truncate(self.text, 200))
88
        return g.markdown.convert(h.text.truncate(self.text, length=200,
89
                                                  indicator=indicator,
90
                                                  whole_word=True))
88
91
89
    @property
92
    @property
90
    def email_address(self):
93
    def email_address(self):
91
        domain = '.'.join(reversed(self.app.url[1:-1].split('/'))).replace('_', '-')
94
        domain = '.'.join(reversed(self.app.url[1:-1].split('/'))).replace('_', '-')
92
        return '%s@%s%s' % (self.title.replace('/', '.'), domain, config.common_suffix)
95
        return '%s@%s%s' % (self.title.replace('/', '.'), domain, config.common_suffix)