flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35073) Multiline XML literal not compiled correctly
Date Mon, 11 Apr 2016 21:43:25 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15236031#comment-15236031
] 

Harbs commented on FLEX-35073:
------------------------------

Here's the result formatted better:
{code:javascript}
  var /** @type {XML} */ xmlSource = new XML( '<xmlParentNode>
   <Set1>
      <child><year>2015</year></child>
      <child><year>2016</year></child>
      <child><year>2017</year></child>
  </Set1>
  <Set2>
      <child><year>2015</year></child>
      <child><year>2016</year></child>
      <child><year>2017</year></child>
  </Set2>
</xmlParentNode>') ;
{code}
and here's what it should be:
{code:javascript}
  var /** @type {XML} */ xmlSource = new XML( '<xmlParentNode>\
   <Set1>\
      <child><year>2015</year></child>\
      <child><year>2016</year></child>\
      <child><year>2017</year></child>\
  </Set1>\
  <Set2>\
      <child><year>2015</year></child>\
      <child><year>2016</year></child>\
      <child><year>2017</year></child>\
  </Set2>\
</xmlParentNode>') ;
{code}

> Multiline XML literal not compiled correctly
> --------------------------------------------
>
>                 Key: FLEX-35073
>                 URL: https://issues.apache.org/jira/browse/FLEX-35073
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>            Reporter: Harbs
>
> The following:
>                 var xmlSource:XML =
> <xmlParentNode>
>    <Set1>
>       <child><year>2015</year></child>
>       <child><year>2016</year></child>
>       <child><year>2017</year></child>
>   </Set1>
>   <Set2>
>       <child><year>2015</year></child>
>       <child><year>2016</year></child>
>       <child><year>2017</year></child>
>   </Set2>
> </xmlParentNode>;
> becomes:
>   var /** @type {XML} */ xmlSource = new XML( '<xmlParentNode>
>    <Set1>
>       <child><year>2015</year></child>
>       <child><year>2016</year></child>
>       <child><year>2017</year></child>
>   </Set1>
>   <Set2>
>       <child><year>2015</year></child>
>       <child><year>2016</year></child>
>       <child><year>2017</year></child>
>   </Set2>
> </xmlParentNode>') ;
> Without escaping line endings, this does not work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message