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.
This commit is contained in:
		| @@ -60,13 +60,12 @@ public class ClientSideFormatter extends PrettyFormatter { | ||||
|  | ||||
|   @Override | ||||
|   protected String prettify(String html, String type) { | ||||
|     return go(prettify.getContext(), html, type, diffPrefs.getTabSize()); | ||||
|     return go(prettify.getContext(), html, type); | ||||
|   } | ||||
|  | ||||
|   private static native String go(JavaScriptObject ctx, String srcText, | ||||
|       String srcType, int tabSize) | ||||
|       String srcType) | ||||
|   /*-{ | ||||
|      ctx.PR_TAB_WIDTH = tabSize; | ||||
|      return ctx.prettyPrintOne(srcText, srcType); | ||||
|   }-*/; | ||||
| } | ||||
|   | ||||
| @@ -129,6 +129,7 @@ public abstract class PrettyFormatter implements SparseHtmlFile { | ||||
|  | ||||
|     String html = toHTML(src); | ||||
|  | ||||
|     html = expandTabs(html); | ||||
|     if (diffPrefs.isSyntaxHighlighting() && getFileType() != null | ||||
|         && src.isWholeFile()) { | ||||
|       // The prettify parsers don't like ' as an entity for the | ||||
| @@ -149,8 +150,6 @@ public abstract class PrettyFormatter implements SparseHtmlFile { | ||||
|       html = html.replaceAll("(\r)?\n", " $1\n"); | ||||
|       html = prettify(html, getFileType()); | ||||
|       html = html.replaceAll(" (\r)?\n", "$1\n"); | ||||
|     } else { | ||||
|       html = expandTabs(html); | ||||
|     } | ||||
|  | ||||
|     int pos = 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Shawn Pearce
					Shawn Pearce