Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136056 - dev-util/source-highlight-2.2 additionals lines printed and suspicious switch --gen-version
Summary: dev-util/source-highlight-2.2 additionals lines printed and suspicious switch...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Reported: 2006-06-08 04:20 UTC by Roland Bär
Modified: 2007-01-22 14:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Roland Bär 2006-06-08 04:20:59 UTC
The --gen-version options is enabled per default, can't disable. This switch makes then no sense.

When highlighting sources to html outlang, then following additional lines get inserted at the beginning:
<pre><!-- Generator: GNU source-highlight 2.2
by Lorenzo Bettini -->

This comes from doctemplate entry /usr/share/source-highlight/

"<!-- Generator: $additional -->

with 2 newlines and then 2 additional newlines from expansion of $additional.

I rely with my usage on exact lines in body, as in source-code.

It would be reasonable enough, if just the newlines and the trailing newline gets  removed. Otherwise that string is prefectly Ok.

Illustration: In the Bug URL click on the function() name, you see the function  context which starts/stops 4 lines too early.
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2007-01-22 14:21:59 UTC
Well, version 2.2 isn't in portage anymore. Besides, I think you should ask upstream for that.