summaryrefslogtreecommitdiff
path: root/vendor/gopkg.in/yaml.v2/apic.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-10 10:41:38 -0500
committerGitHub <noreply@github.com>2021-02-10 10:41:38 -0500
commit88ab83d4e04f2054713461c3f28d905b4c1c2ee2 (patch)
tree9a16fd35768ad78a6c28d85ad0191b3f9d6f03e4 /vendor/gopkg.in/yaml.v2/apic.go
parent832639ca6d1d8004c46aaa4e6c021dfd5a314af3 (diff)
parent46b014bad5f1d471a2ebfd819dfdf33a184ea109 (diff)
downloadpodman-88ab83d4e04f2054713461c3f28d905b4c1c2ee2.tar.gz
podman-88ab83d4e04f2054713461c3f28d905b4c1c2ee2.tar.bz2
podman-88ab83d4e04f2054713461c3f28d905b4c1c2ee2.zip
Merge pull request #9298 from containers/dependabot/go_modules/github.com/spf13/cobra-1.1.2
Bump github.com/spf13/cobra from 1.1.1 to 1.1.2
Diffstat (limited to 'vendor/gopkg.in/yaml.v2/apic.go')
-rw-r--r--vendor/gopkg.in/yaml.v2/apic.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/gopkg.in/yaml.v2/apic.go b/vendor/gopkg.in/yaml.v2/apic.go
index d2c2308f1..acf71402c 100644
--- a/vendor/gopkg.in/yaml.v2/apic.go
+++ b/vendor/gopkg.in/yaml.v2/apic.go
@@ -79,6 +79,8 @@ func yaml_parser_set_encoding(parser *yaml_parser_t, encoding yaml_encoding_t) {
parser.encoding = encoding
}
+var disableLineWrapping = false
+
// Create a new emitter object.
func yaml_emitter_initialize(emitter *yaml_emitter_t) {
*emitter = yaml_emitter_t{
@@ -86,7 +88,9 @@ func yaml_emitter_initialize(emitter *yaml_emitter_t) {
raw_buffer: make([]byte, 0, output_raw_buffer_size),
states: make([]yaml_emitter_state_t, 0, initial_stack_size),
events: make([]yaml_event_t, 0, initial_queue_size),
- best_width: -1,
+ }
+ if disableLineWrapping {
+ emitter.best_width = -1
}
}