]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config.c: retain leading whitespace before comments
authorAllan Nathanson <42244061+Allan-N@users.noreply.github.com>
Wed, 30 Oct 2024 20:52:41 +0000 (16:52 -0400)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Fri, 10 Jan 2025 16:10:24 +0000 (16:10 +0000)
commit22b261575fdcafe31f62eff470ce9a9748a53beb
tree0a1f3e4971b887d317cc6d652c493b77cedd654c
parent7f70190c597d7eed6fd992ce9253e1ca2ccfcf4f
config.c: retain leading whitespace before comments

Configurations loaded with the ast_config_load2() API and later written
out with ast_config_text_file_save2() will have any leading whitespace
stripped away.  The APIs should make reasonable efforts to maintain the
content and formatting of the configuration files.

This change retains any leading whitespace from comment lines that start
with a ";".

Resolves: https://github.com/asterisk/asterisk/issues/970
main/config.c