ArchLUG Kwiki - www.archlug.org

Download the RSS XML Feed for this site

Download the RSS XML Feed for this site

Subscribe to this channel with Amphetadesk

Subscribe to this channel with RadioUserland

Add to Google

ArchLUG Blog20030909


Added RadioUserland auto-subscribe links and icon. The Gimp colormap wheel tool is amazing.

Fixed the table problem described in ArchLUG Blog20030904.

In Formatter::http_link(), I'm now using this regex:

qr{((?:https?|ftp|irc):\S+?(?=[),.:;]?\s|<|$))}m

instead of this one:

qr{((?:https?|ftp|irc):\S+?(?=[),.:;]?\s|$))}m

Notice the addition of "<|" to the zero-width look-ahead assertion. This prevents it from matching the adjacent "</td>" tag when the table is parsed.

Also in Formatter::http_link_format(), I'm now using this regex:

if ($text =~ /^(?:https?|ftp):\S+?\.(?i:jpg|gif|jpeg|png)$/ {

instead of this one:

if ($text =~ /^http.*\.(?i:jpg|gif|jpeg|png)$/) {

This allows image URLs to be https and ftp.

I also cleaned up some extra needless "paragraphing" around html tags - table, dl, dt, dd, tr, td, etc.


Valid XHTML 1.0! Valid CSS!
InterTran (www.tranexp.com)
InterTran (www.tranexp.com)

Please MOVE AND HOLD your MOUSE CURSOR over any WORD in the translated web page in order to see a pop-up window with ALTERNATIVE TRANSLATIONS. Translations provided by: www.tranexp.com