Strings aren't quoted in pcbnew (lp:#1655193)
Original report created by Ed Johns (ejohns)
Application: pcbnew
Version: 4.0.5 release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC
5.2.0,wx containers,compatible with 2.8)
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian,
wxMSW
Boost version: 1.57.0
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_WXPYTHON=ON
USE_FP_LIB_TABLE=HARD_CODED_ON
BUILD_GITHUB_PLUGIN=ON
Noticed this when using git and pcbnew. Not sure if it is a bug or
wishlist.
I set the date field to $Format:%cd$ so that when I archive from a
repository, it will expand the string to the release date. Git expands the
string to a date with spaces. These fields aren't quoted in the file
because there are no spaces as saved. When I try to open the file in
pcbnew, there is a parse error.
I was able to workaround by adding a trailing space to force quotation, but
that may be unreliable if pcbnew ever removes trailing white-space.
I love working with the software, and like I said, there is a workaround,
so do with this what you will.
Thanks.
-Ed