web pages with ~ do not underline correctly

Bug #243692 reported by Aapo Rantalainen
2
Affects Status Importance Assigned to Milestone
source-highlight (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: source-highlight

Ubuntu 7.10 with source-highlight 2.4-5.1build1

Very simple c-file:
/*
http://www.helsinki.fi/~rantalai
 */
int main() {
return 0;
}

So I expected that the whole link is underlined.

But source-highlight produces:
--snip--
<pre><tt><i><font color="#9A1900">/*</font></i>
<u><font color="#0000FF">http://www.helsinki.fi/</font></u><i><font color="#9A1900">~rantalai</font></i>
<i><font color="#9A1900"> */</font></i>
--snip--

Revision history for this message
Aapo Rantalainen (aapo-rantalainen) wrote :

I tried newer version (2.9). Not fixed yet.

ftp://ftp.gnu.org/gnu/src-highlite/

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

I also tried out 2.9 (this package really should be updated) and also there is not fixed.

Changed in source-highlight:
status: New → Confirmed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

The workaround solution is simply to add the tilde (~) character in the regex which is used for url parsing:

1. Open the file /usr/share/source-highlight/url.lang with su rights
2. Add a ~in the vardef URLPART = '[[:word:]\./\-_]+' line, like:

vardef URLPART = '[[:word:]\./\-_~]+'

3. save and exit

Now the url is parsed correctly.
Before fixing this (and possibly updating the package) could you pls. let me know if you find any regression after this change?

Changed in source-highlight:
status: Confirmed → Incomplete
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Updated to version 2.9 and fix committed locally (upstream confirmed that this is the right fix). Will upload to official repo in the next few days.

Changed in source-highlight:
status: Incomplete → Fix Committed
description: updated
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

I'm waiting for an official 2.10 tarball from upstream to publish this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package source-highlight - 2.10-0ubuntu1

---------------
source-highlight (2.10-0ubuntu1) intrepid; urgency=low

  * New upstream release (LP: #243692).
  * Fix various lintian warnings:
    - Removed DH_COMPAT and created debian/compat.
    - Bump Standards-Version to 3.8.0.
      + Add Homepage field in debian/control.
    - Changed clean rule to avoid ignoring make distclean errors.
  * debbian/copyright:
    - Update license information (package is now GPL-3 but still few GPL-2
      sources remain).
    - Add all copyrights, missing in previous versions.
  * debian/rules:
    - General clean-up.
    - Make regex library in --with-boost-regex option distro dependent to ease
      backporting.
    - Add make check step.
    - Move all examples to /usr/share/doc/source-highlight/examples.
    - Add quilt support.
  * debian/control:
    - Add quilt (for patching), exuberant-ctags(for make check),
      and autotools-dev (for config.{sub, guess}) as Build-depends.
    - Updated long description in debian/control.
  * Corrected README.Debian.
  * Add watch file.
  * Removed useless debian/source-highlight.dirs.
  * Removed TODO.txt from debian/source-highlight.docs.

 -- Cesare Tirabassi <email address hidden> Tue, 22 Jul 2008 19:50:45 +0200

Changed in source-highlight:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.