The green boxes at the end of lines show the presence of trailing space characters. They are a consequence of syntax highlighting in nano. In /etc/nanorc, there is
Code:
## To include all existing syntax definitions, you can do:
include "/usr/share/nano/*.nanorc"
If you run the command
Code:
grep -A1 '# Trailing whitespace' /usr/share/nano/*.nanorc
you will see the entries.
The trailing space characters are generally inconsequential, and do not indicate corruption of your file.
The second issue you have is that nano is automatically breaking long lines.
From the nano internal help
Quote:
M-Y Color syntax highlighting enable/disable
...
M-L Hard wrapping of overlong lines enable/disable
|