hcl/hcl/printer/testdata
Florian Forster b07f6fa7a2 printer: Simplify the formatting of single-line lists.
This change splits out the formatting of simple single-line lists. A list
is considered "simple" if all of its elements are on one line, all
elements are literals (except heredoc) and there are no line comments.
As an exception, a heredoc string is allowed when it is the only element
in the list.

This fixes an issue with a single-line list with one element and a line
comment. The formatter used to pull the closing bracket on the same line
(after the comment), causing parse errors.
2018-04-04 19:34:59 +02:00
..
comment_aligned.golden printer: output EOF newline in formatted hcl 2016-04-06 09:09:04 -05:00
comment_aligned.input Fix indent of list item comments 2016-02-07 18:20:06 +03:00
comment_array.golden hcl/printer: fix some edge cases around ending with a lead comment 2016-10-08 15:06:49 +08:00
comment_array.input hcl/printer: fix some edge cases around ending with a lead comment 2016-10-08 15:06:49 +08:00
comment_crlf.input Fix handling of line comments in multi-line statements. 2018-04-03 19:39:12 +02:00
comment_end_file.golden hcl/printer: cleaner handling of standalone comments at end of file 2017-02-01 16:03:59 -08:00
comment_end_file.input hcl/printer: cleaner handling of standalone comments at end of file 2017-02-01 16:03:59 -08:00
comment_multiline_indent.golden hcl/printer: multiline comments shouldn't indent lines 2+ 2016-11-09 14:49:37 -08:00
comment_multiline_indent.input hcl/printer: multiline comments shouldn't indent lines 2+ 2016-11-09 14:49:37 -08:00
comment_multiline_no_stanza.golden hcl/printer: proper spacing between comments (see test case) 2016-11-01 10:59:20 -07:00
comment_multiline_no_stanza.input Add just comment version 2016-10-31 12:04:45 -04:00
comment_multiline_stanza.golden Add failing format example 2016-10-31 11:59:07 -04:00
comment_multiline_stanza.input Add failing format example 2016-10-31 11:59:07 -04:00
comment_newline.golden hcl/printer: file with only comments formats properly 2016-10-08 11:42:34 +08:00
comment_newline.input hcl/printer: file with only comments formats properly 2016-10-08 11:42:34 +08:00
comment_object_multi.golden hcl/printer: format comments across multiple lines in an object 2017-01-24 16:44:23 -08:00
comment_object_multi.input hcl/printer: format comments across multiple lines in an object 2017-01-24 16:44:23 -08:00
comment_standalone.golden printer: output EOF newline in formatted hcl 2016-04-06 09:09:04 -05:00
comment_standalone.input move hclnew to hcl 2015-11-06 16:04:20 -08:00
comment.golden Fix handling of line comments in multi-line statements. 2018-04-03 19:39:12 +02:00
comment.input Fix handling of line comments in multi-line statements. 2018-04-03 19:39:12 +02:00
complexhcl.golden printer: output EOF newline in formatted hcl 2016-04-06 09:09:04 -05:00
complexhcl.input hcl/printer: unindent for heredocs 2015-11-10 14:54:46 -08:00
empty_block.golden hcl/printer: format single line objects to not have newline between 2017-01-24 17:05:35 -08:00
empty_block.input printer: don't write a newline on empty objects 2016-03-14 15:38:41 +01:00
list_comment.golden printer: Simplify the formatting of single-line lists. 2018-04-04 19:34:59 +02:00
list_comment.input printer: Simplify the formatting of single-line lists. 2018-04-04 19:34:59 +02:00
list_of_objects.golden Add test for list of objects in printer 2016-07-08 13:25:14 +01:00
list_of_objects.input Add test for list of objects in printer 2016-07-08 13:25:14 +01:00
list.golden printer: Simplify the formatting of single-line lists. 2018-04-04 19:34:59 +02:00
list.input hcl: print single heredoc elements properly 2017-01-24 16:26:48 -08:00
multiline_string.golden Support multiline string literals in HCL only in HIL fragments 2016-11-24 22:59:50 +03:00
multiline_string.input Support multiline string literals in HCL only in HIL fragments 2016-11-24 22:59:50 +03:00
object_singleline.golden hcl/printer: singleline objects followed by non-singleline need blank 2017-02-17 08:45:53 -08:00
object_singleline.input hcl/printer: singleline objects followed by non-singleline need blank 2017-02-17 08:45:53 -08:00
object_with_heredoc.golden printer: Add another failing input to TestFormatParsable. 2018-04-03 16:16:34 +02:00
object_with_heredoc.input printer: Add another failing input to TestFormatParsable. 2018-04-03 16:16:34 +02:00