nbell12 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Recursion loop on prettyPrintOne("") #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by stone...@gmail.com on 25 Mar 2007 at 7:23

GoogleCodeExporter commented 8 years ago
Ack.  Will fix.

Original comment by mikesamuel@gmail.com on 27 Mar 2007 at 6:54

GoogleCodeExporter commented 8 years ago

Original comment by mikesamuel@gmail.com on 27 Mar 2007 at 6:57

GoogleCodeExporter commented 8 years ago
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

Original comment by mikesamuel@gmail.com on 2 Apr 2007 at 6:43