~divmod-dev/divmod.org/829869-explicit-type-dropping

Viewing all changes in revision 2676.

  • Committer: Jean-Paul Calderone
  • Date: 2011-07-10 14:00:42 UTC
  • mfrom: (2675.1.2 nevow-json)
  • Revision ID: exarkun@divmod.com-20110710140042-03gtd5p4kjga9d4p
Special case two unicode line separator characters in the Nevow JSON serializer. 

U+2028 and U+2029 are legal in JSON strings but not legal in JavaScript
strings.  To simplify life for the browser side of things, avoid ever
emitting these characters in Nevow's JSON serializer and instead emit
the escaped forms instead.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: