def analyze_scalar()

in cfn_tools/yaml_dumper.py [0:0]


    def analyze_scalar(self, scalar):
        # We have Json payloads that we want to show as literal
        # This way we can skip the checks that analize_scalar do in the string when you have
        # leading_space or leading_break
        if not scalar or isinstance(scalar, LiteralString):
            return ScalarAnalysis(scalar=scalar, empty=True, multiline=False,
                                  allow_flow_plain=False, allow_block_plain=True,
                                  allow_single_quoted=True, allow_double_quoted=True,
                                  allow_block=True)
        return super(CfnEmitter, self).analyze_scalar(scalar)