]> Sergey Matveev's repositories - zk.git/commitdiff
More convenient => link
authorSergey Matveev <stargrave@stargrave.org>
Thu, 8 May 2025 15:52:49 +0000 (18:52 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 8 May 2025 15:52:49 +0000 (18:52 +0300)
zk

diff --git a/zk b/zk
index d8e8ba7fca310c0150e8d79ca17399a22657c61a..04b0829d4e46dfae2df74db66f48dde8a421429b 100755 (executable)
--- a/zk
+++ b/zk
@@ -65,7 +65,7 @@ quickly open results in the editor.
 
 =item *
 
-C<E<gt> URL[ optional text]\r> on a separate line will add a link to the
+C<=E<gt> URL[ optional text]\r> on a separate line will add a link to the
 specified URL (with optional text). Pay attention that line contains
 carriage-return character at the end.
 
@@ -287,7 +287,7 @@ sub genHTML {
             s/^(\s*)//g;
             my $head = $1;
             my @cols = split /\s+/;
-            if ($cols[0] eq ">") {
+            if ($cols[0] eq "=>") {
                 my $t = ($#cols > 1) ? (join " ", @cols[2..$#cols]) : $cols[1];
                 $t = htmlescape $t;
                 $t =~ s/"/\&guot;/g;
@@ -307,7 +307,7 @@ sub genHTML {
                 $doBacksForced = 1;
                 next;
             } else {
-                die "unknown $cols[0] command\n";
+                die "unknown $cols[0] command: $page\n";
             }
         } else {
             $_ = htmlescape $_;