aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpsyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet>1984-04-04 00:44:19 +0000
committerpsyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet>1984-04-04 00:44:19 +0000
commit97c96ef8fe4598892c676573ac79556a86f64852 (patch)
treea89c546b9a108109505ff6ad783673efc4e88149
parent5ea1ca4ddff52fbb3e577aab9bf33385d9926465 (diff)
downloadprep-97c96ef8fe4598892c676573ac79556a86f64852.tar.gz
prep-97c96ef8fe4598892c676573ac79556a86f64852.zip
autolink footnotes, careful on read
-rwxr-xr-xbin/prep2
-rw-r--r--lib/prep/html/util.pl1
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/prep b/bin/prep
index eb88768..5be73f3 100755
--- a/bin/prep
+++ b/bin/prep
@@ -47,7 +47,7 @@ if ($file) {
47} else { 47} else {
48 my $save = $/; 48 my $save = $/;
49 undef $/; 49 undef $/;
50 $data = <>; 50 $data = <<>>;
51 $/ = $save; 51 $/ = $save;
52} 52}
53 53
diff --git a/lib/prep/html/util.pl b/lib/prep/html/util.pl
index 87e8de5..318e1c2 100644
--- a/lib/prep/html/util.pl
+++ b/lib/prep/html/util.pl
@@ -125,6 +125,7 @@ sub do_fn {
125 my $t = shift; 125 my $t = shift;
126# this hack isn't actually needed: 126# this hack isn't actually needed:
127# $t =~ tr:[]:(): if $VAR{LQFB}; 127# $t =~ tr:[]:(): if $VAR{LQFB};
128 $t = '<a href="'.$t.'">'.$t.'</a>' if $t =~ /^http\S+$/;
128 $fn[++$FN] = $t; 129 $fn[++$FN] = $t;
129 # using () instead of [] so that i can mousepaste it into LQFB 130 # using () instead of [] so that i can mousepaste it into LQFB
130 return "<sup class='fn'>(<a name='bn$FN' href='#fn$FN'>$FN</a>)</sup>"; 131 return "<sup class='fn'>(<a name='bn$FN' href='#fn$FN'>$FN</a>)</sup>";