src/INICommand.cpp
branchv_0
changeset 8 83b23480d41f
parent 7 95b21edc9519
child 15 0cf8bcb9c8fc
--- a/src/INICommand.cpp	Mon Nov 23 17:21:04 2020 +0100
+++ b/src/INICommand.cpp	Mon Nov 23 17:23:16 2020 +0100
@@ -114,6 +114,12 @@
 
 	void startSection(const SectionStartEvent& event) override {
 		currentSection.push_back(event.name);
+
+		if (configuration.enableComments && event.comment.size()) {
+			Record record(&event);
+			record.comment = event.comment;
+			write(record);
+		}
 	};
 
 	void endSection() override {