eaglebk / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

first letter of link always capitalised #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set up the WikiModel, passing in "/${title}" as the base link uri
2. pass in an internal link: [[my/url|link text]]
3. receive back the html: <a href=\"/My/url\">link text</a>

What is the expected output? What do you see instead?

My url is not camel case, so I would hope the original lower case first
letter would not be captalised.

What version of the product are you using? On what operating system?
3.0.9, across Mac/ Linux (Debian) / Windows

Please provide any additional information below.

Initial question raised in: 
http://groups.google.com/group/bliki/browse_thread/thread/a3b82a8c9870ca33

Original issue reported on code.google.com by oliver.e...@gmail.com on 13 Jan 2009 at 5:26

GoogleCodeExporter commented 9 years ago

Original comment by axelclk@gmail.com on 13 Jan 2009 at 7:10

GoogleCodeExporter commented 9 years ago

Original comment by axelclk@gmail.com on 13 Jan 2009 at 7:10

GoogleCodeExporter commented 9 years ago

I added a change to SVN:
http://code.google.com/p/gwtwiki/source/detail?r=31

You can now override the new method IWIkiModel#encodeTitleToUrl()[1]
and implement your
own URL encoder or call the modified static Encoder#encodeTitleToUrl()
[2] with
encodeTitleToUrl=false.

Please review if this change is ok.

[1] http://code.google.com/p/gwtwiki/source/browse/trunk/info.bliki.wiki/bliki-
core/src/main/java/info/bliki/wiki/model/IWikiModel.java
[2] http://code.google.com/p/gwtwiki/source/browse/trunk/info.bliki.wiki/bliki-
core/src/main/java/info/bliki/wiki/filter/Encoder.java

Original comment by axelclk@gmail.com on 13 Jan 2009 at 7:11

GoogleCodeExporter commented 9 years ago

Original comment by axelclk@gmail.com on 27 Mar 2009 at 7:05