Skip to content

Commit

Permalink
Revert "Set the default line length to infinity (-1) (go-yaml#571)"
Browse files Browse the repository at this point in the history
This reverts commit 0b1645d.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
  • Loading branch information
dims committed Nov 12, 2020
1 parent b893565 commit 934a70d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion apic.go
Expand Up @@ -86,7 +86,6 @@ 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,
}
}

Expand Down
5 changes: 0 additions & 5 deletions encode_test.go
Expand Up @@ -397,11 +397,6 @@ var marshalTests = []struct {
map[string]interface{}{"a": jsonNumberT("bogus")},
"a: bogus\n",
},
// Ensure that strings do not wrap
{
map[string]string{"a": "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 "},
"a: 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 '\n",
},
}

func (s *S) TestMarshal(c *C) {
Expand Down

0 comments on commit 934a70d

Please sign in to comment.