Created
December 12, 2009 08:01
-
-
Save kayakaya/254797 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: core/misc/lib/hikidoc.rb | |
=================================================================== | |
--- core/misc/lib/hikidoc.rb (revision 3557) | |
+++ core/misc/lib/hikidoc.rb (working copy) | |
@@ -438,7 +438,7 @@ | |
def compile_bracket_link(link) | |
if m = /\A(?>[^|\\]+|\\.)*\|/.match(link) | |
- title = m[0].chop | |
+ title = m[0].chop.gsub( %r[\\\|], '|' ) | |
uri = m.post_match | |
fixed_uri = fix_uri(uri) | |
if can_image_link?(uri) | |
Index: plugin/category.rb | |
=================================================================== | |
--- plugin/category.rb (revision 3557) | |
+++ plugin/category.rb (working copy) | |
@@ -121,7 +121,7 @@ | |
end | |
r << <<HTML | |
<div class="conf day"> | |
- <h2><span class="title">#{img}#{info.make_anchor}</span></h2> | |
+ <h2><span class="title">#{img}#{info.make_anchor.force_encoding('UTF-8')}</span></h2> | |
<div class="body"> | |
<ul class="category"> | |
HTML |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment