CuarzoSoftware / Louvre

C++ library for building Wayland compositors.
MIT License
506 stars 14 forks source link

remove trailing whitespace from code #33

Closed zlice closed 6 months ago

zlice commented 6 months ago

i'm sorry :]

there's more non-code trailing whitespace, mostly doxygen which i assume is autogenerated. i didn't try to build after but at a glance none of it looks intentional.

CHANGES
doxygen/Layout.xml
doxygen/css/doxygen-awesome.css
doxygen/css/doxygen-awesome-old.css
doxygen/footer.html
doxygen/md/Examples.md
doxygen/md/tutorial/02.md
doxygen/md/tutorial/03.md
doxygen/md/tutorial/04.md
doxygen/md/tutorial/05.md
doxygen/md/tutorial/06.md
doxygen/md/tutorial/07.md
doxygen/md/tutorial/08.md
doxygen/md/tutorial/09.md
doxygen/md/tutorial/10.md
doxygen/md/tutorial/11.md
doxygen/md/tutorial/12.md
doxygen/md/tutorial/13.md
doxygen/md/tutorial/14.md
doxygen/md/tutorial/16.md
doxygen/md/tutorial/17.md
doxygen/md/tutorial/18.md
ehopperdietzel commented 6 months ago

Hello, thank you. I'm going to try compiling it to see if it doesn't affect anything. What tool do you use to remove those spaces?

zlice commented 6 months ago

grep -r '[[:space:]]$' to find

sed -e 's/ $//g' -i file in a loop to remove (cat /tmp/ws_strip | while read in ; do sed -e 's/ $//g' -i $in ; done)

and my vimrc is something like this to match whitespace on end of line and ctrl+j to nuke it

nmap <C-j> :call TrailWhite()<CR>

fun! TrailWhite()
     %s/\s\+$//g
endf

autocmd Filetype * call MyStart()
function MyStart()
     match Statement /=/
     2match Error /\s\+$/
     highlight ColorColumn ctermbg=magenta
     call matchadd('ColorColumn', '\%119v', 100)
endfunction
ehopperdietzel commented 6 months ago

Nice, I will use it from now on. By the way, everything compiles and works, and the documentation is not affected either, so all is good! Thank you