Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3624 closed defect (fixed)

Php highlighter loses last line (regression in r3488)

Reported by: Tim Hatch <trac@…> Owned by: Christian Boos
Priority: normal Milestone: 0.10
Component: general Version: devel
Severity: minor Keywords: php mimeview
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In certain cases, highlighting using the php binary will chop off the last line after the fix from #3326 (my fault). This should be fixed and tests added so it doesn't happen again, as discussed in on trac-dev

I've got a patch for this which needs to be cleaned up a bit before being applied for 0.10 and am attaching that initial patch for reference.

Attachments (2)

mimeview-php-r3646-full-with-tests.diff (8.0 KB ) - added by Tim Hatch <trac@…> 18 years ago.
mimeview-php-r3646-full-with-tests.2.diff (8.8 KB ) - added by Tim Hatch <trac@…> 18 years ago.
Second rendition, wrapped to 80 columns, with cboos' Windows fix

Download all attachments as: .zip

Change History (6)

by Tim Hatch <trac@…>, 18 years ago

comment:1 by Christian Boos, 18 years ago

Owner: changed from Jonas Borgström to Christian Boos

by Tim Hatch <trac@…>, 18 years ago

Second rendition, wrapped to 80 columns, with cboos' Windows fix

comment:2 by Tim Hatch <trac@…>, 18 years ago

Line 48 still lists a url with p.e.c, missed that when I edited the others. I believe the longest line is 79 characters now, and complies with the spirit of pep8 (is there an automated checker?).

Should the imports for test.locate() be moved module-level?

in reply to:  2 comment:3 by Christian Boos, 18 years ago

Status: newassigned

Replying to Tim Hatch <trac@timhatch.com>:

Line 48 still lists a url with p.e.c,

Will fix it

I believe the longest line is 79 characters now, and complies with the spirit of pep8 (is there an automated checker?).

Maybe pychecker or pylint handle that. A simpler way is to arrange your test editor to have 79 and check that nothnig wraps ;)

Should the imports for test.locate() be moved module-level?

I'll take care of that, too. Thanks for the updated patch!

comment:4 by Christian Boos, 18 years ago

Resolution: fixed
Status: assignedclosed

Applied in r3655 with some minor clean-ups, as suggested by mgood on the trac-dev list.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.