Strings aren't quoted in pcbnew
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Committed
|
Low
|
Jeff Young |
Bug Description
Application: pcbnew
Version: 4.0.5 release build
wxWidgets: Version 3.0.2 (debug,
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Boost version: 1.57.0
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
Changed in kicad: | |
milestone: | none → 6.0.0-rc1 |
Changed in kicad: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in kicad: | |
assignee: | nobody → Jeff Young (jeyjey) |
Changed in kicad: | |
status: | Triaged → In Progress |
I'm trying to understand what you mean by date field. Are you setting the date field in the kicad_pcb file header (the first line) or the title block date field or something else?