/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/controllers/view_ui.py

  • Committer: Jelmer Vernooij
  • Date: 2018-10-20 15:02:08 UTC
  • mto: (491.6.1 breezy)
  • mto: This revision was merged to the branch mainline in revision 494.
  • Revision ID: jelmer@jelmer.uk-20181020150208-9cxsjqw6kkaeutnj
More python 3 work; down to 16 failing tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        file_lines = breezy.osutils.split_lines(file_text)
68
68
        # This can throw breezy.errors.BinaryFile (which our caller catches).
69
69
        breezy.textfile.check_text_lines(file_lines)
70
 
        
 
70
 
71
71
        if highlight is not None:
72
72
            hl_lines = highlight(file_name, file_text, encoding)
73
73
            # highlight strips off extra newlines at the end of the file.
75
75
            hl_lines.extend([u''] * extra_lines)
76
76
        else:
77
77
            hl_lines = map(util.html_escape, file_lines)
78
 
        
 
78
 
79
79
        return hl_lines;
80
80
 
81
81
    def file_contents(self, file_id, revid):