You don't have to code anything.
From the Google Doc menu, click on Format / Line and character spacing ->
Finally click on "Add space after paragraph"
Ta da.