diff options
author | Marcus Müller <mueller@kit.edu> | 2018-06-18 11:38:01 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-06-20 15:51:11 +0200 |
commit | c7d5ecf30c1281200ea830aa21030c0fe0bac8e2 (patch) | |
tree | 30827c146bd88d941faa279229cdfc113fe992f9 /gr-trellis/lib | |
parent | add88dc7387ef41efb2c6aca9e2eccbf311e8f3d (diff) |
Added XML header strings to make the generated SVG work standalone in browsers
Diffstat (limited to 'gr-trellis/lib')
-rw-r--r-- | gr-trellis/lib/fsm.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-trellis/lib/fsm.cc b/gr-trellis/lib/fsm.cc index 4e57949f5e..4c1fe69285 100644 --- a/gr-trellis/lib/fsm.cc +++ b/gr-trellis/lib/fsm.cc @@ -492,7 +492,11 @@ namespace gr { const int STATE_LABEL_X_OFFSET = 5; const int STAGE_STATE_OFFSETS = 10; // std::cout << "################## BEGIN SVG TRELLIS PIC #####################" << std::endl; - trellis_fname << "<svg viewBox = \"0 0 200 200\" version = \"1.1\">" << std::endl; + trellis_fname << + "<?xml version=\"1.0\" standalone=\"no\"?>" + "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">" + "<svg viewBox=\"0 0 200 200\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">" + << std::endl; for(int stage_num = 0;stage_num < number_stages;stage_num ++) { // draw states |