Fix js conversion of rendered patch to plain text view.
Problem report and patch by Jun Omae, thanks!
Closes #8901.
Authored by: cboos 2009-12-19
Parent: [r8956]
Child: [r8958]