Abdera
  1. Abdera
  2. ABDERA-114

Missing coma in JSON serilaizer for element content

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3.0
    • Fix Version/s: 0.4.0
    • Labels:
      None

      Description

      The JSON serialization misses a coma when writing a tag child with mixed content (text-tag-text). Here is an example of output:

      "children":["There is a train wreck coming.\u00a0 And it has nothing to do with whether the content is \u201cmore\u201d programmable or not.\u00a0 Long, long, long before it gets to that point, one needs to be able to reliably (and in a ",{
      "name":"a",
      "attributes":

      { "href":"http://en.wikipedia.org/wiki/Non-repudiation" }

      ,
      "children":["non-reputable"
      ]
      }" manner) determine whether or not the information is consumable at all."

      The last list is missing a comma just before " manner.

      Looking at the code it actually looks like a simple type, patch to come.

      1. patch.txt
        0.7 kB
        Matthieu Riou

        Activity

        Hide
        Matthieu Riou added a comment -

        Patch to properly add comma after element inclusion in a mixed content text.

        Show
        Matthieu Riou added a comment - Patch to properly add comma after element inclusion in a mixed content text.
        Hide
        James M Snell added a comment -

        Checked in. Thank you!

        Show
        James M Snell added a comment - Checked in. Thank you!

          People

          • Assignee:
            Unassigned
            Reporter:
            Matthieu Riou
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development