Commit 768beb7
committed
ENH: ParameterSerializer: Improve escaping of the JSONModuleDescription
The JSONModuleDescription did not escape the already escaped quote marks
correctly, causing build error:
error: expected ';' after top level declarator
" \"Default\" : \"\\"1\\"\",\n"
Escaping the escape character fixes this. A parameter with a string
default with quotes is also added to testing to make sure that this works.
Reported-by: Andrey Fedorov <fedorov@bwh.harvard.edu>
Tested-by: Andrey Fedorov <fedorov@bwh.harvard.edu>
Thanks: Andrey Fedorov <fedorov@bwh.harvard.edu>1 parent 69ed4de commit 768beb7
File tree
2 files changed
+26
-6
lines changed- GenerateCLP
- Testing/PointExample1
2 files changed
+26
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
471 | 481 | | |
472 | 482 | | |
473 | 483 | | |
| |||
482 | 492 | | |
483 | 493 | | |
484 | 494 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
| 495 | + | |
| 496 | + | |
491 | 497 | | |
492 | 498 | | |
493 | 499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
44 | 58 | | |
45 | 59 | | |
0 commit comments