Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#5040 closed defect (wontfix)

Enscript adds a newline to the end of a shell script

Reported by: nslater@… Owned by: Christian Boos
Priority: normal Milestone:
Component: version control/browser Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When using enscript for syntax highlighting there is a bug that adds an additional newline to the display if the file ends with a comment.

I have attached a screenshot showing this behaviour.

Attachments (0)

Change History (2)

comment:1 by anonymous, 18 years ago

Well, I would attach a file but I get an error:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 398, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 361, in process_request
    self._do_save(req, attachment)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 477, in _do_save
    for field, message in manipulator.validate_attachment(req, attachment):
  File "build/bdist.linux-x86_64/egg/tracspamfilter/adapters.py", line 130, in validate_attachment
  File "build/bdist.linux-x86_64/egg/tracspamfilter/api.py", line 131, in test
  File "build/bdist.linux-x86_64/egg/tracspamfilter/model.py", line 119, in insert
  File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
ProgrammingError: current transaction is aborted, commands ignored until end of transaction block

comment:2 by Hyuga <hyugaricdeau@…>, 18 years ago

Resolution: wontfix
Status: newclosed

This is due to a combination of the way enscript outputs HTML, and the way the deuglifier handles it. This is most likely a wontfix as TRAC is moving to Pygments for all your highlighting needs.

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.