My favorites | Sign in
Google
                
New issue | Search
for
| Advanced search | Search tips
Issue 6: Recursion loop on prettyPrintOne("")
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  mikesamuel
Closed:  Apr 2007
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by stonehew, Mar 25, 2007
What steps will reproduce the problem?
1. call prettyPrintOne("");

What is the expected output? What do you see instead?
Should return an empty string, instead, it hits an infinite recursion loop.

What version of the product are you using? On what operating system?
Revision 20, firefox 2.

Please provide any additional information below.
I am using this package to perform syntax highlighting on code taken from a
dynamic number of textareas, so just calling prettify() doesn't suit my needs.
Comment 1 by mikesamuel, Mar 27, 2007
Ack.  Will fix.
Comment 2 by mikesamuel, Mar 27, 2007
(No comment was entered for this change.)
Owner: mikesamuel
Comment 3 by mikesamuel, Apr 02, 2007
I believe this is fixed.

The issue did not occur if the code was called via prettyPrint but should not occur
on any path now.

http://google-code-prettify.googlecode.com/svn/trunk/CHANGES.html
Status: Fixed
Sign in to add a comment