'''
YAML Outputter
'''

# Third Party libs
import yaml


def __virtual__():
    return 'yaml'


def output(data):
    '''
    Print out YAML
    '''
    return yaml.dump(data)

'''
Output data in YAML, this outputter defaults to printing in YAML block mode
for better readability.
'''

# Third Party libs
import yaml


def __virtual__():
    return 'yaml'


def output(data):
    '''
    Print out YAML using the block mode
    '''
    return yaml.dump(data, default_flow_style=False)

Change the YAML outputter to use block mode and add some docs
Change the YAML outputter to use block mode and add some docs

  '''
- YAML Outputter
+ Output data in YAML, this outputter defaults to printing in YAML block mode
+ for better readability.
  '''
  
  # Third Party libs
  import yaml
  
  
  def __virtual__():
      return 'yaml'
  
  
  def output(data):
      '''
-     Print out YAML
+     Print out YAML using the block mode
      '''
-     return yaml.dump(data)
+     return yaml.dump(data, default_flow_style=False)
  
Change the YAML outputter to use block mode and add some docs
## Code Before:
'''
YAML Outputter
'''

# Third Party libs
import yaml


def __virtual__():
    return 'yaml'


def output(data):
    '''
    Print out YAML
    '''
    return yaml.dump(data)

## Instruction:
Change the YAML outputter to use block mode and add some docs
## Code After:
'''
Output data in YAML, this outputter defaults to printing in YAML block mode
for better readability.
'''

# Third Party libs
import yaml


def __virtual__():
    return 'yaml'


def output(data):
    '''
    Print out YAML using the block mode
    '''
    return yaml.dump(data, default_flow_style=False)
