nbell12 / google-code-prettify

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

Output not valid XHTML when document is XHTML #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Any prettyprint

What is the expected output?  What do you see instead?
A xhtml conform output.

What version are you using?  On what browser?
Any.

Please provide any additional information below.
<br> tags should really be formatted as <br /> to be xhtml conform.

Quick fix:
-              .replace(/\r\n?|\n/g, '<br>');
+              .replace(/\r\n?|\n/g, '<br />');

Original issue reported on code.google.com by Po0ky.yk...@gmail.com on 4 Jun 2007 at 7:26

GoogleCodeExporter commented 8 years ago
Sorry, I forgot to set the topic :/
It's about valid output :)

Original comment by Po0ky.yk...@gmail.com on 4 Jun 2007 at 7:27

GoogleCodeExporter commented 8 years ago
Ignore the fix above, it seems to be a bit more complicated.

Original comment by Po0ky.yk...@gmail.com on 4 Jun 2007 at 7:34

GoogleCodeExporter commented 8 years ago

Original comment by mikesamuel@gmail.com on 15 Aug 2007 at 6:23

GoogleCodeExporter commented 8 years ago

Original comment by mikesamuel@gmail.com on 15 Aug 2007 at 8:44

GoogleCodeExporter commented 8 years ago
Why does the recommended fix not work?

Original comment by mikesamuel@gmail.com on 30 Aug 2007 at 9:52

GoogleCodeExporter commented 8 years ago
Closing for lack of response.

Original comment by mikesamuel@gmail.com on 23 Oct 2007 at 1:22