diff options
author | Simon McVittie <smcv@debian.org> | 2015-03-01 12:40:59 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2015-03-01 12:40:59 +0000 |
commit | 2d27fadfc509c615f0fefe784be643c1703029a2 (patch) | |
tree | 6db9bc8049396e3665ca85d30c4175bea42c284d /doc | |
parent | 8479293c914abdc7eb4342f53d079cae66ebceac (diff) | |
download | ikiwiki-2d27fadfc509c615f0fefe784be643c1703029a2.tar ikiwiki-2d27fadfc509c615f0fefe784be643c1703029a2.tar.gz |
fix fenced code block syntax for comprehensibility
ikiwiki.info does not support ``` as a fence for code blocks, only ~~~,
and it only works at the beginning of a new paragraph.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment b/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment index 752141c67..7d8a1a771 100644 --- a/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment +++ b/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment @@ -5,11 +5,12 @@ date="2015-02-25T05:43:26Z" content=""" I fixed it by adding -``` + +~~~ sub decode($$;$) { my ( $name, $octets, $check ) = @_; return undef unless defined $octets; return $octets if Encode::is_utf8($octets); # add this check $octets .= ''; -``` +~~~ """]] |