]> https://gitweb.dealii.org/ - dealii.git/commit
Fix ensure_single_trailing_newline() on macs. 16835/head
authorDavid Wells <drwells@email.unc.edu>
Tue, 2 Apr 2024 02:16:18 +0000 (22:16 -0400)
committerDavid Wells <drwells@email.unc.edu>
Wed, 3 Apr 2024 14:28:11 +0000 (10:28 -0400)
commita376c34977424c5af123790619751bbcbbaec19b
tree185e31898aba423b7de01726dcfe4f405444fba2
parent9614c4b674299c81292be583ae2f68f81951f3a3
Fix ensure_single_trailing_newline() on macs.

I'm not sure exactly why mac's version of sed produces different output here but
it is easy enough to use something simpler. Just check if the last character is
a newline: if not, then append a newline character.
contrib/utilities/indent_common.sh

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.