+gallahad Posted May 17, 2006 Share Posted May 17, 2006 I prepared my cache page using HTML (as well as I could) When I access the page, the encrypted hints are laid out in paragraph form: Court Jester's Revenge by gallahad (GCHW6Q) When I "decrypt" the page, the hint text runs together: http://www.geocaching.com/seek/cache_detai...77-efdeb9ac59c4 When I ask for a "print out" version, the encrypted text is laid out in a paragraph form: http://www.geocaching.com/seek/cache_detai...&log=n&decrypt= When I "decrypt" the "print out" page, it remains in paragraph form: http://www.geocaching.com/seek/cache_detai...&log=n&numlogs= So what's causing it to run together when I simply ask for the decrption of the hints on the main page???? Link to comment
robertlipe Posted May 17, 2006 Share Posted May 17, 2006 The problem is that your embedded HTMLin the hint is being encrypted/descrypted. For example, <p> becomes <c> (which, of course, means something other than what was intended. My reading of http://www.geocaching.com/includes/rot13.js shows that you might be able to psyche this out by putting your break tags inside square braces. Maybe. Very likely that function should be maintaining a similar shift state for HTML tags if the body is HTML. Raine? Link to comment
+Raine Posted May 17, 2006 Share Posted May 17, 2006 Robert: I'd agree.. but what if someone wanted to wrap some text in < brackets >.... I'll look into it of course Link to comment
+Lasagna Posted May 17, 2006 Share Posted May 17, 2006 Actually, I think that might be a function of the Javascript "quick decrypt" functionality. What happens if you click on the "encrypt" a second time after you've decrypted it the first time? On my, it then reformats the text properly. Link to comment
+Prime Suspect Posted May 17, 2006 Share Posted May 17, 2006 Lasagna is correct. The javascript is not decrypting the individual text nodes, but the entire hint, including the line break tags. This make them appear to be unrecognized html tags, which the browser ignores. That causes the individual lines to run together. Link to comment
Recommended Posts