]> git.mdlowis.com Git - proto/labwc.git/commit
Don't remove newlines when parsing config, menu and XBM
authortokyo4j <hrak1529@gmail.com>
Wed, 15 Oct 2025 07:36:01 +0000 (16:36 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Fri, 17 Oct 2025 13:08:41 +0000 (22:08 +0900)
commit7f67b9c8664b57eefb70644b2c17ceb378acd49e
treefe98564e1e171ffca27bec21077bd2dff7bd9e36
parenteebf5b3e4edfb66e4d1e55e0f4c217887d36b233
Don't remove newlines when parsing config, menu and XBM

Removing newlines in rc.xml and menu.xml caused parser error with
following content:

<!--
 -
 - Some comments
 -
-->

...though it is a valid XML.

Let's not do that. I moved `grab_file()` to `buf.c` and renamed it to
`buf_from_file()`, because it now directly touches `struct buf` and
I don't like having a source file only for one function.
include/common/buf.h
include/common/grab-file.h [deleted file]
src/common/buf.c
src/common/grab-file.c [deleted file]
src/common/meson.build
src/config/rcxml.c
src/img/img-xbm.c
src/menu/menu.c