[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 02/03: generate-lintian-pod: Fix formatting pathnames followed by punctuation chars



This is an automated email from the git hooks/post-receive script.

jwilk pushed a commit to branch master
in repository lintian.

commit 58eb5832d796001b2cbe3838d91eebc34a9e9520
Author: Jakub Wilk <jwilk@debian.org>
Date:   Sun Feb 7 15:57:26 2016 +0100

    generate-lintian-pod: Fix formatting pathnames followed by punctuation chars
    
    When parsing checks' Info, don't consider trailing punctuation
    characters as parts of pathnames.
    
    For example,
    
        Info: Check targets and actions in debian/rules.
    
    is now rendered as
    
        Check targets and actions in I<debian/rules>.
    
    instead of
    
        Check targets and actions in I<debian/rules.>
---
 debian/changelog             | 3 +++
 private/generate-lintian-pod | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 3d209cf..5400b8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -57,6 +57,9 @@ lintian (2.5.41) UNRELEASED; urgency=medium
   * man/lintian-lab-tool.pod:
     + [NT] New file.
 
+  * private/generate-lintian-pod:
+    + [JW] Fix formatting pathnames followed by punctuation characters.
+
  -- Niels Thykier <niels@thykier.net>  Sun, 24 Jan 2016 12:58:06 +0000
 
 lintian (2.5.40.2) unstable; urgency=medium
diff --git a/private/generate-lintian-pod b/private/generate-lintian-pod
index 83137a5..11ff335 100755
--- a/private/generate-lintian-pod
+++ b/private/generate-lintian-pod
@@ -61,7 +61,7 @@ sub pretty_print {
         $line =~ s@\<b\>([^<]*)\</b\>@B<$1>@iog;
         $line =~ s@\<i\>([^<]*)\</i\>@I<$1>@iog;
         # Underline paths
-        $line =~ s@(\S*/(?:[^/ \t]++/?)*)@I<$1>@og;
+        $line =~ s@(\S*/(?:[^/ \t]*[^/ \t.,:;]/?)*)@I<$1>@og;
         # Policy Manual
         $line =~ s@Policy Manual@B<Policy Manual>@og;
         foreach my $kw (@keywords){

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: