File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -29,4 +29,51 @@ Expect puppet (comment is wrapped into more lines):
2929 file { 'foo':
3030 ensure => present,
3131 }
32+ -------------------------------------------------------------------------------
33+ Given puppet (long line before editing):
34+ file { 'foo':
35+ ensure => present,
36+ source => ['puppet:///modules/very_long_module_name_that_will_not_stop'],
37+ }
38+
39+ Before (set textwidth):
40+ set textwidth=76
41+
42+ After (unset textwidth):
43+ set textwidth=0
44+
45+ Do (type in some more on long line):
46+ jjA mode
47+
48+ Expect puppet (text is wrapped to new line):
49+ file { 'foo':
50+ ensure => present,
51+ source => ['puppet:///modules/very_long_module_name_that_will_not_stop'],
52+ mode
53+ }
54+ -------------------------------------------------------------------------------
55+ -- This next test is paired with a functionality that should be made better
56+ -- By keeping the cursor in the relative same spot, we could actually run
57+ -- indent and hashrocket formatting.
58+ Given puppet (badly indented long line before editing):
59+ file { 'foo':
60+ ensure => present,
61+ source => ['puppet:///modules/very_long_module_name_that_will_not_stopXX'],
62+ }
63+
64+ Before (set textwidth):
65+ set textwidth=76
66+
67+ After (unset textwidth):
68+ set textwidth=0
69+
70+ Do (type in some more on long line):
71+ jjAmode
72+
73+ Expect puppet (text is wrapped to new line without reindenting):
74+ file { 'foo':
75+ ensure => present,
76+ source => ['puppet:///modules/very_long_module_name_that_will_not_stopXX'],
77+ mode
78+ }
3279
You can’t perform that action at this time.
0 commit comments