]> source.dussan.org Git - gitblit.git/commitdiff
Fix to BuildSite for pages with underscores in name.
authorJames Moger <james.moger@gitblit.com>
Mon, 18 Jul 2011 22:12:44 +0000 (18:12 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 18 Jul 2011 22:12:44 +0000 (18:12 -0400)
src/com/gitblit/build/BuildSite.java

index 97615f83a838b16e649ea4bdd2261a76455bd1a3..43d7d623f416bc20537d1081d134c68b38fbf981 100644 (file)
@@ -99,6 +99,8 @@ public class BuildSite {
                                String displayName = documentName;\r
                                if (aliasMap.containsKey(documentName)) {\r
                                        displayName = aliasMap.get(documentName);\r
+                               } else {\r
+                                       displayName = displayName.replace('_', ' ');\r
                                }\r
                                String fileName = documentName + ".html";\r
                                sb.append(MessageFormat.format(linkPattern, fileName, displayName));\r