[Yaml] reverted previous commit
This commit is contained in:
parent
2dc36191d1
commit
a248fc133b
@ -299,10 +299,13 @@ class Parser
|
|||||||
$data = array(substr($this->currentLine, $newIndent));
|
$data = array(substr($this->currentLine, $newIndent));
|
||||||
|
|
||||||
while ($this->moveToNextLine())
|
while ($this->moveToNextLine())
|
||||||
|
{
|
||||||
|
if ($this->isCurrentLineEmpty())
|
||||||
{
|
{
|
||||||
if ($this->isCurrentLineBlank())
|
if ($this->isCurrentLineBlank())
|
||||||
{
|
{
|
||||||
$data[] = substr($this->currentLine, $newIndent);
|
$data[] = substr($this->currentLine, $newIndent);
|
||||||
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -143,31 +143,3 @@ yaml: |
|
|||||||
0123
|
0123
|
||||||
php: |
|
php: |
|
||||||
array('foo' => "0123\n")
|
array('foo' => "0123\n")
|
||||||
---
|
|
||||||
test: Comments in folded scalars
|
|
||||||
brief: Comments in folded scalars should be kept as is
|
|
||||||
yaml: |
|
|
||||||
# comment
|
|
||||||
foo: |
|
|
||||||
# comment
|
|
||||||
bar
|
|
||||||
bar:
|
|
||||||
# comment
|
|
||||||
foo: bar # comment
|
|
||||||
bar: |
|
|
||||||
# comment
|
|
||||||
foo
|
|
||||||
foobar:
|
|
||||||
foo: |
|
|
||||||
# comment
|
|
||||||
bar
|
|
||||||
# comment
|
|
||||||
php: |
|
|
||||||
array(
|
|
||||||
'foo' => "# comment\nbar\n",
|
|
||||||
'bar' => array(
|
|
||||||
'foo' => 'bar',
|
|
||||||
'bar' => "# comment\nfoo\n",
|
|
||||||
'foobar' => array('foo' => "# comment\nbar\n")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
Reference in New Issue
Block a user