PrettyFormatter: Fix ArrayIndexOutOfBoundException with CRLF files.

Change I6d82ce322d401743a8de5ab8090b2adc43a909f5 added a workaround for
a bug in prettify, by temporarily adding a space before each \n
character.

For files with CRLF line endings, this means replacing "\r\n" by
"\r<space>\n", which prettify sees as two lines. This leads to a
crash since Gerrit expects a consistent number of lines even after
prettify.

When Show Line Endings is active, the issue does not appear since \r
are replaced with a specific markup, without any actual \r.

Change-Id: I345e332225e449c6f26871476f1a07e67458da59
PrettyFormatter: Fix expand tab when syntax coloring is on.

prettify lost support for expanding tabs in r143 [1]. As a consequence,
tab width preference is no longer honored.

Gerrit now handles expanding tabs by itself in all cases, even if syntax
coloring is active.

[1] http://code.google.com/p/google-code-prettify/source/detail?r=143

Bug: issue 1872
Change-Id: I283a3620b1d130d3f66e56d3f202a5122d7a73b8
Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  PrettyFormatter: Fix ArrayIndexOutOfBoundException with CRLF files.
Add plugin repositories section in the pom

Without this section in the pom, the Eclipse build of gerrit-gwtexpui fails:

Project build error: Unresolveable build extension: Plugin com.googlesource.gerrit:gs-maven-
 wagon:3.3 or one of its dependencies could not be resolved: Failure to find
 com.googlesource.gerrit:gs-maven-wagon:jar:3.3 in http://repo.maven.apache.org/maven2
 was cached in the local repository, resolution will not be reattempted until the update interval
 of central has elapsed or updates are forced

Change-Id: I0fa4b97ae653fbe757ebcfbbab153f22d87b07bb
(cherry picked from commit 475fc60b87a9cb741ebcf8cb8e16ec41a5fc05e1)
Properly handle double click on external group in GroupTable

Previously double click action on row with external group result in
"Undefined group exception" because Gerrit trys to load internal group
screen for this group. Now we will discover external groups and use
external group URL (if provided) to forward user to external system same
as we do on single click.

Change-Id: I3636d6af306d5eebf48dc76ca66662271d378f10
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
Fix: NullPointerException of dashboard title

Fixed according to the Document about dashboard.title: "If not specified
the path of the dashboard config file is used as title."

Change-Id: Ia55ed5e491c676d3c4bfea4a069b998817997e24
(cherry picked from commit d4268bd03f1014edc747c10fe025787c4e42905f)
Merge "Properly handle double click on external group in GroupTable" into stable-2.6
Merge "PrettyFormatter: Fix expand tab when syntax coloring is on." into stable-2.6
Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  Fix: NullPointerException of dashboard title
  Properly handle double click on external group in GroupTable
  Add plugin repositories section in the pom
  PrettyFormatter: Fix expand tab when syntax coloring is on.
Merge remote-tracking branch 'origin/stable-2.7' into stable-2.7-typo3