diff options
author | James Moger <james.moger@gitblit.com> | 2015-05-22 13:39:17 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2015-05-22 13:39:17 -0400 |
commit | 310a807f07ceeaa7d8fa0890d9061021707bbeb8 (patch) | |
tree | a8c375dc296fc857338034898cf3a14f7b7beafc /src/main/java/com/gitblit/wicket/pages/ReviewProposalPage.java | |
parent | 99450c557d895c94e7eec618218d0f4bc5c16ffd (diff) | |
download | gitblit-310a807f07ceeaa7d8fa0890d9061021707bbeb8.tar.gz gitblit-310a807f07ceeaa7d8fa0890d9061021707bbeb8.zip |
Implement configurable tab length support for blob views
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/ReviewProposalPage.java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/ReviewProposalPage.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/ReviewProposalPage.java b/src/main/java/com/gitblit/wicket/pages/ReviewProposalPage.java index 8aec9e63..ceca1ec2 100644 --- a/src/main/java/com/gitblit/wicket/pages/ReviewProposalPage.java +++ b/src/main/java/com/gitblit/wicket/pages/ReviewProposalPage.java @@ -76,8 +76,9 @@ public class ReviewProposalPage extends RootSubPage { sb.append(asParam(p, proposal.name, "exclude", ""));
sb.append(asParam(p, proposal.name, "include", ""));
+ final int tabLength = app().settings().getInteger(Keys.web.tabLength, 4);
add(new Label("definition", StringUtils.breakLinesForHtml(StringUtils.escapeForHtml(sb
- .toString().trim(), true))).setEscapeModelStrings(false));
+ .toString().trim(), true, tabLength))).setEscapeModelStrings(false));
List<RepositoryModel> repositories = new ArrayList<RepositoryModel>(
proposal.repositories.values());
|