[PATCH] correctly handle C<< >> and C<<< >>> in diagnostics

This is just a quick hack; ideally someone would make it use an actual
pod parser.

--- perl/lib/diagnostics.pm.orig	2003-12-30 15:48:47.000000000 -0800
+++ perl/lib/diagnostics.pm	2004-05-25 01:54:31.735904000 -0700
@@ -314,10 +314,10 @@
 	    sub noop   { return $_[0] }  # spensive for a noop
 	    sub bold   { my $str =$_[0];  $str =~ s/(.)/$1\b$1/g; return $str; } 
 	    sub italic { my $str = $_[0]; $str =~ s/(.)/_\b$1/g;  return $str; } 
-	    s/[BC]<(.*?)>/bold($1)/ges;
+	    s/C<<< (.*?) >>>|C<< (.*?) >>|[BC]<(.*?)>/bold($+)/ges;
 	    s/[LIF]<(.*?)>/italic($1)/ges;
 	} else {
-	    s/[BC]<(.*?)>/$1/gs;
+	    s/C<<< (.*?) >>>|C<< (.*?) >>|[BC]<(.*?)>/$+/gs;
 	    s/[LIF]<(.*?)>/$1/gs;
 	} 
 	unless (/^=/) {

-1
sthoenna
5/25/2004 9:29:37 AM
perl.perl5.porters 47867 articles. 1 followers. Follow

1 Replies
831 Views

Similar Articles

[PageSpeed] 35

Yitzchak Scott-Thoennes wrote:
> This is just a quick hack; ideally someone would make it use an actual
> pod parser.
> 
> --- perl/lib/diagnostics.pm.orig	2003-12-30 15:48:47.000000000 -0800
> +++ perl/lib/diagnostics.pm	2004-05-25 01:54:31.735904000 -0700

Thanks, applied as #22848.
-1
rgarciasuarez
5/26/2004 8:33:10 AM
Reply:

Similar Artilces:

C<< >> vs C<< >> vs C<< x >>
Ugh. So we all know that there's this syntax for formatting codes (n=E9s "interio= r sequences") like C<< x >>. And that tokenizes as three tokens: "C<< ", open-C code "x", content " >>" close-code matching the C open-code And this is explicated by what I wrote in perlpodspec where I say that such a code... * starts with a capital letter (just US-ASCII [A-Z]) followed by two or more "<"'s, one or more whitespace characters, * any number of characters * one or more whit...

[PATCH] Fix POD: C<...->...> => C<< ...-> ... >>
--=-0nPiZliXhb80VRfJ/8qX Content-Type: text/plain Content-Transfer-Encoding: 7bit See the attached patch, it fixes some POD which gets rendered wrong by newer POD rendering tools. Thanks, Frank --=-0nPiZliXhb80VRfJ/8qX Content-Disposition: attachment; filename="0001-Fix-POD-C-.-.-C.patch" Content-Type: text/x-patch; name="0001-Fix-POD-C-.-.-C.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit From ed46d8dd56e57d51347cb0a7a6397687ee15a950 Mon Sep 17 00:00:00 2001 From: Frank Wiegand <frank.wiegand@gmail.com> Date: Thu, 19 Nov 2009 1...

>>>> Heads up <<<<
I just got a warning from Norton that "PamelaSetup-Basic.exe" has a virus in it. The name is "VirusBurst" Luckily, I did not install this software and Norton's quarantined it so I could delte it, which I have done. Symantec has not completed analysis of this particular piece of garbage but it did catch the sig. If you have installed Pamela, you may be in trouble. Duffy wrote: > I just got a warning from Norton that "PamelaSetup-Basic.exe" has a virus > in it. The name is "VirusBurst" > > Luckily, I did not install...

RFC 199 (v2) Short-circuiting C<grep>, C<map>, and C<reduce> with C<last>
(or "Allowing built-in functions to use loop blocks") Reply-To: perl6-language@perl.org This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Short-circuiting C<grep>, C<map>, and C<reduce> with C<last> (or "Allowing built-in functions to use loop blocks") =head1 VERSION Maintainer: Garrett Goebel <garrett@scriptpro.com> Date: 6 Sep 2000 Last Modified: 7 Sep 2000 Mailing List: perl6-language@perl.org Number: 199 Version: 2 Status: Developing =head1 ABSTRACT Allow buil...

>>>> ROOT Exploit in SAMBA <<<<<<
"A flaw has been detected in the Samba main smbd code which could allow an external attacker to remotely and anonymously gain Super User (root) privileges on a server running a Samba server. This flaw exists in previous versions of Samba from 2.0.x to 2.2.7a inclusive. This is a serious problem and all sites should either upgrade to Samba 2.2.8 immediately or prohibit access to TCP ports 139 and 445." http://us3.samba.org/samba/samba.html Binaries are available from Samba for RedHat, and some other distributions. So far as I can tell, the RedHat update mirrors I norm...

VB <<<>>> C#
it will be usefull to have a good Vb C# | C# Vb translatorangiras I'll ask around and see if I can find out if we're planning to offer translation. In the meantime, you can find a number of them on the web, and you can also look into the DTE (our automation model) Code Model - you may be able to use it to do some interesting forms of translation. -ScottThis posting is provided "AS IS" with no warranties, and confers no rights. I have never heard about this code model ! thanksangiras they say Namespace: EnvDTE I cannot find it is it Microsofz.Win32 ?angiras The EnvDTE DL...

r31680 -[S32/Temporal] Added to Date: "There are also C<week>, C<week-year>, C<week-number>, C<weekday-of-month>, and C<day-of-year> methods, which work just like their DateTime equivalents."
Author: Kodi Date: 2010-07-14 16:35:46 +0200 (Wed, 14 Jul 2010) New Revision: 31680 Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod Log: [S32/Temporal] Added to Date: "There are also C<week>, C<week-year>, C<week-number>, C<weekday-of-month>, and C<day-of-year> methods, which work just like their DateTime equivalents." Modified: docs/Perl6/Spec/S32-setting-library/Temporal.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Temporal.pod 2010-07-14 14:35:21 UTC (rev 316...

>>>> BUY RAM <<<<
.. ~~~*@@@*~~~ ================================================== ================================================== ENTER HERE: >>> http://web-for-you.cn/about/buy-ram <<< ================================================== ================================================== .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ...

Should C<grep> and C<reverse> work in C<Any> ?
Do C<grep> and C<reverse> act like the C<join> method, in that they work for C<Any> object and not just objects of type C<List>? In other words,, should C< $x.grep(...) > work even if $x isn't normally a list type? Pm --- On Sun, 29/6/08, Patrick R. Michaud <pmichaud@pobox.com> wrote: > Do C<grep> and C<reverse> act like the > C<join> method, in that > they work for C<Any> object and not just objects of > type C<List>? >=20 > In other words,, should C< $x.grep(...) > work e...

>>>> CAPITALS GAMES <<<<
.. ~~~!!!~~~ ================================================== ================================================== CLICK HERE TO ENTER: >>> http://web-paradise.cn/3/capitals-games <<< ================================================== ================================================== .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....

C<croak> in XS does C<die> not C<croak>
I just saw a question on comp.lang.perl.modules where the error message: Bad arg length for Socket::unpack_sockaddr_in, [...] at C:/Perl/lib/Socket.pm line 295. understandably confused a user who had simply passed an invalid argument to C<sockaddr_in>. This is exactly the situation that C<Carp::croak> is meant to avoid so it is unfortunate in this case that, in XS code, C<croak> acts like C<die> and not like C<Carp::croak>. Anyone recall past discussions on whether XS C<croak> should be able to skip up the call stack until it finds a...

>>>> BLU-RAY MOVIES <<<<
.. ~~~!!!~~~ ================================================== ================================================== CLICK HERE TO ENTER: >>> http://web-paradise.cn/2/blu-ray-movies <<< ================================================== ================================================== .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....

RFC 151 (v1) Merge C<$!>, C<$^E>, and C<$@>
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Merge C<$!>, C<$^E>, and C<$@> =head1 VERSION Maintainer: Peter Scott <Peter@PSDT.com> Date: 24 Aug 2000 Version: 1 Mailing List: perl6-language@perl.org Number: 151 =head1 ABSTRACT The distinction between the C<$!>, C<$^E>, and C<$@> variables is no longer worth trading for the benefits to be gained from merging them together. =head1 DESCRIPTION The C<$!> variable made excellent sense in Perl 4 as a repre...

How to strip a string of <html>, ,</html>, <body>, </body>, <form ... >, </form> tags?
I have stream which is the HTML input of a page. Now I want to use only that part of this page, that is within <form .....> and </form> tags, and excluding these tags.How would I go about stripping <html>, ,</html>, <body>, </body>, <form ... >, </form>, <head> and </head> tags? I have to make sure that <head ...javascript..> and its corresponding </head> tags are not stripped in this process.sun21170    Wait... you said you wanted to strip the head tags, and you're also saying you need to NOT strip the ...

Web resources about - [PATCH] correctly handle C<< >> and C<<< >>> in diagnostics - perl.perl5.porters

Resources last updated: 12/9/2015 2:06:09 AM