Descriptioncmd/gofmt: fix error on partial Go code ending with line comment.
Fix issue by always appending newline after user input, before
the closing curly bracket. The adjust func is modified to remove
this new newline.
Add test case (it fails before CL, passes after).
Fixes issue 8411.
Patch Set 1 #Patch Set 2 : diff -r a6a2de805fc04c923e25951334f2a240f9c40db1 https://code.google.com/p/go #Patch Set 3 : diff -r a6a2de805fc04c923e25951334f2a240f9c40db1 https://code.google.com/p/go #
Total comments: 1
Patch Set 4 : diff -r 8e4e7940943a2dfd0b60db75fac44865005b2271 https://code.google.com/p/go #
MessagesTotal messages: 12
|