Opened 7 years ago

Closed 7 years ago

#2311 closed defect (bug) (fixed)

Parsed source code displays one line too many

Reported by: keesiemeijer's profile keesiemeijer Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords: has-patch


The function get_source_code() returns one line too many. This can result in displaying broken source code. For example, the last curly bracket } should not be displayed in these posts.

Attachments (1)

2311.patch (956 bytes) - added by keesiemeijer 7 years ago.
Parse correct number of source lines

Download all attachments as: .zip

Change History (3)

7 years ago

Parse correct number of source lines

#1 @keesiemeijer
7 years ago

  • Keywords has-patch added

#2 @coffee2code
7 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 4554: Fix source code display including an extra line.

Props keesiemeijer.
Fixes #2311.

Note: See TracTickets for help on using tickets.