From 945ed36ec486f83c4546cac8d6bed954dfe32c4e Mon Sep 17 00:00:00 2001 From: Scott Main Date: Fri, 15 Jan 2010 17:30:38 -0800 Subject: [PATCH] docs: add the ability to exclude PRE elements from being prettified by adding the class "no-pretty-print" (needs to hyphenate 'prettyprint', otherwise the prettify script will parse "no-prettyprint" the same as "prettyprint") --- tools/droiddoc/templates/assets/android-developer-docs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/droiddoc/templates/assets/android-developer-docs.js b/tools/droiddoc/templates/assets/android-developer-docs.js index 1099e6e04..dfe8fa1c5 100644 --- a/tools/droiddoc/templates/assets/android-developer-docs.js +++ b/tools/droiddoc/templates/assets/android-developer-docs.js @@ -64,7 +64,7 @@ addLoadEvent( function() { } ); addLoadEvent( function() { - $("pre").addClass("prettyprint"); + $("pre:not(.no-pretty-print)").addClass("prettyprint"); prettyPrint(); } );