Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 136056

Summary: dev-util/source-highlight-2.2 additionals lines printed and suspicious switch --gen-version
Product: Gentoo Linux Reporter: Roland Bär <roland>
Component: [OLD] DevelopmentAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED UPSTREAM    
Severity: minor CC: dev-zero
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
URL: http://www.verifysoft.de/CMTHTML.source-highlight-line-bug/indexB1.html
Whiteboard:
Package list:
Runtime testing required: ---

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
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt>

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

doctemplate
"<!-- Generator: $additional -->
<pre><tt>"
"</tt></pre>
"
end

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.