#3624 closed defect (fixed)
Php highlighter loses last line (regression in r3488)
Reported by: | 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)
Change History (6)
by , 18 years ago
Attachment: | mimeview-php-r3646-full-with-tests.diff added |
---|
comment:1 by , 18 years ago
Owner: | changed from | to
---|
by , 18 years ago
Attachment: | mimeview-php-r3646-full-with-tests.2.diff added |
---|
follow-up: 3 comment:2 by , 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?
comment:3 by , 18 years ago
Status: | new → assigned |
---|
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 , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Applied in r3655 with some minor clean-ups, as suggested by mgood on the trac-dev list.
Second rendition, wrapped to 80 columns, with cboos' Windows fix