utils/add_blank_lines library

Add an empty line before header lines in the given string. Copyright (C) 2025, Togaware Pty Ltd

Licensed under the GNU General Public License, Version 3 (the "License");

License: https://opensource.org/license/gpl-3-0

Authors: Graham Williams

Functions

addBlankLinesBeforeHeaders(String input) String
We assume a header line is non-blank and does not contain a colon (":"). If a header line is found and the preceding line is not blank, an empty line is inserted.