From: James Moger Date: Mon, 18 Jul 2011 22:12:44 +0000 (-0400) Subject: Fix to BuildSite for pages with underscores in name. X-Git-Tag: v0.5.2~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=333f550a87c9cd8f5632a712d7f932cb436c10df;p=gitblit.git Fix to BuildSite for pages with underscores in name. --- diff --git a/src/com/gitblit/build/BuildSite.java b/src/com/gitblit/build/BuildSite.java index 97615f83..43d7d623 100644 --- a/src/com/gitblit/build/BuildSite.java +++ b/src/com/gitblit/build/BuildSite.java @@ -99,6 +99,8 @@ public class BuildSite { String displayName = documentName; if (aliasMap.containsKey(documentName)) { displayName = aliasMap.get(documentName); + } else { + displayName = displayName.replace('_', ' '); } String fileName = documentName + ".html"; sb.append(MessageFormat.format(linkPattern, fileName, displayName));