diff --git a/docs/app/js/code.js b/docs/app/js/code.js index abca20e76d..0550459d50 100644 --- a/docs/app/js/code.js +++ b/docs/app/js/code.js @@ -5,11 +5,11 @@ angular.module('code', []) restrict: 'E', terminal: true, compile: function(element) { - var linenums = element.hasClass('linenum');// || element.parent()[0].nodeName === 'PRE'; + var linenums = element.hasClass('linenum'); var match = /lang-(\S+)/.exec(element[0].className); var lang = match && match[1]; var html = element.html(); element.html(window.prettyPrintOne(html, lang, linenums)); } }; -}); \ No newline at end of file +});