]> 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 Development Team <asteriskteam@digium.com>
Thu, 23 Jan 2025 18:36:03 +0000 (18:36 +0000)
commitb2e81346bb4c941826bc48c4aa527cbafbcc1a88
treebd1a2d440a746aa32188bb450aabfc91fabd89f9
parente0a5c620961bb17020c1ca00190c48e3c30a8827
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
(cherry picked from commit dd1e5065ba26c8a62f1f5b62ab682e8dabb8ca29)
main/config.c