X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/b27b281bae08c81b79217a6f7ed5dfa2654f4239..9c976dfa8a3cd5dc9ae2b3b9e3ae207ff666cab8:/source.plp diff --git a/source.plp b/source.plp index e07087d..142b67f 100644 --- a/source.plp +++ b/source.plp @@ -122,6 +122,9 @@ else { # link other page sources, stylesheets, and javascript $line =~ s{ ^(['"]?) \K ($incname) (?=\1$) }{ showlink($2, "/source/$2") }xe if !$type || $type eq 'Constant'; + # link relative page locations in html output + $line =~ s{ ^(")\K ((?:/\w+)+) (?=\1$) }{ showlink($2, "/source$2.plp") }xe + if $type && $type eq 'Constant'; # link perl module names (Xx::Xx...) $line =~ s{ ^\s* \K ([A-Z]\w+(?:::\w+)+) (?![^;\s]) }{ showlink($1, "/source/$1") }xe if !$type;