You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to display line numbers using Code.setShowLineNumbers(true) doesn't work.
The rendered HTML shows a single L0 item instead of L0,L1,L2,... for every line of code.
This is caused by CodeBehavior.createInitializerScript() which changes the prettyfied HTML in line 119 by replacing linebreaks with " ":
Trying to display line numbers using Code.setShowLineNumbers(true) doesn't work.
The rendered HTML shows a single L0 item instead of L0,L1,L2,... for every line of code.
This is caused by CodeBehavior.createInitializerScript() which changes the prettyfied HTML in line 119 by replacing linebreaks with "
":
return "$('#" + markupId + "').html(PR.prettyPrintOne($('#" + markupId + "').html().replace(/\\r\\n|\\r|\\n/g,'<br>'), '', $('#" + markupId + "').attr('class')));";
This bug can be fixed as follows:
return "$('#" + markupId + "').html(PR.prettyPrintOne($('#" + markupId + "').html(), '', $('#" + markupId + "').attr('class')));";
The text was updated successfully, but these errors were encountered: