Mercurial > geeqie
comparison src/bar_info.c @ 1051:2a02fa29478b
The comment section in the meta file is the last section. However it do
not accept comment lines starting with a '['. This patch will fix that.
- patch by Klaus Ethgen
author | nadvornik |
---|---|
date | Mon, 29 Sep 2008 21:17:19 +0000 |
parents | 9962b24b6b43 |
children | 1646720364cf |
comparison
equal
deleted
inserted
replaced
1050:92defc61fa53 | 1051:2a02fa29478b |
---|---|
145 while (fgets(s_buf, sizeof(s_buf), f)) | 145 while (fgets(s_buf, sizeof(s_buf), f)) |
146 { | 146 { |
147 gchar *ptr = s_buf; | 147 gchar *ptr = s_buf; |
148 | 148 |
149 if (*ptr == '#') continue; | 149 if (*ptr == '#') continue; |
150 if (*ptr == '[') | 150 if (*ptr == '[' && key != MK_COMMENT) |
151 { | 151 { |
152 gchar *keystr = ++ptr; | 152 gchar *keystr = ++ptr; |
153 | 153 |
154 key = MK_NONE; | 154 key = MK_NONE; |
155 while (*ptr != ']' && *ptr != '\n' && *ptr != '\0') ptr++; | 155 while (*ptr != ']' && *ptr != '\n' && *ptr != '\0') ptr++; |