aboutsummaryrefslogtreecommitdiff
path: root/doc/todo
diff options
context:
space:
mode:
authorPaul <Paul@web>2018-06-10 06:57:28 -0400
committeradmin <admin@branchable.com>2018-06-10 06:57:28 -0400
commite4516078cc7c5e9148a0f079e3d9a71eeccd4155 (patch)
tree05d893cfda0bdba92f901f98675509f14899ba88 /doc/todo
parente8c994c550a80a34faaa089daa9fe4631555a8a6 (diff)
downloadikiwiki-e4516078cc7c5e9148a0f079e3d9a71eeccd4155.tar
ikiwiki-e4516078cc7c5e9148a0f079e3d9a71eeccd4155.tar.gz
Don't use --noprefix for the patch
Diffstat (limited to 'doc/todo')
-rw-r--r--doc/todo/Don__39__t_change_text_like___91____91__this__93____93___in_code_blocks.mdwn16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/todo/Don__39__t_change_text_like___91____91__this__93____93___in_code_blocks.mdwn b/doc/todo/Don__39__t_change_text_like___91____91__this__93____93___in_code_blocks.mdwn
index 3dc4215ad..eca054e61 100644
--- a/doc/todo/Don__39__t_change_text_like___91____91__this__93____93___in_code_blocks.mdwn
+++ b/doc/todo/Don__39__t_change_text_like___91____91__this__93____93___in_code_blocks.mdwn
@@ -1,12 +1,12 @@
- diff --git IkiWiki/Plugin/link.pm IkiWiki/Plugin/link.pm
- index 1ba28eafd..27427b183 100644
- --- IkiWiki/Plugin/link.pm
- +++ IkiWiki/Plugin/link.pm
+ diff --git a/IkiWiki/Plugin/link.pm b/IkiWiki/Plugin/link.pm
+ index 1ba28eafd..61a397bf8 100644
+ --- a/IkiWiki/Plugin/link.pm
+ +++ b/IkiWiki/Plugin/link.pm
@@ -107,7 +107,13 @@ sub linkify (@) {
my $page=$params{page};
my $destpage=$params{destpage};
- - $params{content} =~ s{(\\?)$link_regexp}{
+ - $params{content} =~ s{(\\?)$link_regexp}{
+ my $content;
+ for my $line ( split /\n/, $params{content} ) {
+ if ( $line =~ /^(?:\t| )/ ) {
@@ -20,12 +20,12 @@
@@ -122,8 +128,10 @@ sub linkify (@) {
: htmllink($page, $destpage, linkpage($3),
anchor => $4))
- }eg;
+ }eg;
+ $content .= $line . "\n";
+ }
- - return $params{content};
- + return $content;
+ - return $params{content};
+ + return $content;
}
sub scan (@) {