view_ui fails to display line numbers when syntax highlighting is not available

Bug #1955738 reported by Aleksandr Smyshliaev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
loggerhead
Triaged
Low
Unassigned

Bug Description

When the highlight module cannot be imported, ViewUI.text_lines returns a map object instead of a list of lines.

Then the expression "line python:range(1, len(contents) + 1)" in the view template cannot be evaluated because object of type 'map' has no len().

Guruprasad (lgp171188)
Changed in loggerhead:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.