cmSvgWriter.c : Improved formatting of HTML content.
This commit is contained in:
parent
780abd5e74
commit
88fdfd998d
@ -199,19 +199,19 @@ cmSvgRC_t cmSvgWriterWrite( cmSvgH_t h, const cmChar_t* cssFn, const cmChar_t*
|
|||||||
cmChar_t* s1 = NULL;
|
cmChar_t* s1 = NULL;
|
||||||
|
|
||||||
cmChar_t hdr[] =
|
cmChar_t hdr[] =
|
||||||
"<!DOCTYPE html>"
|
"<!DOCTYPE html>\n"
|
||||||
"<html>"
|
"<html>\n"
|
||||||
"<head>"
|
"<head>\n"
|
||||||
"<meta charset=\"utf-8\">"
|
"<meta charset=\"utf-8\">\n"
|
||||||
"<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">"
|
"<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n"
|
||||||
"<script type=\"text/javascript\" src=\"svg-pan-zoom.min.js\"></script>"
|
"<script type=\"text/javascript\" src=\"svg-pan-zoom.min.js\"></script>\n"
|
||||||
"<script>"
|
"<script>\n"
|
||||||
" var panZoom = null;"
|
" var panZoom = null;\n"
|
||||||
" function doOnLoad() { panZoom = svgPanZoom(document.querySelector('#mysvg'), { controlIconsEnabled:true } ) }"
|
" function doOnLoad() { panZoom = svgPanZoom(document.querySelector('#mysvg'), { controlIconsEnabled:true } ) }\n"
|
||||||
"</script>"
|
"</script>\n"
|
||||||
"</head>"
|
"</head>\n"
|
||||||
"<body onload=\"doOnLoad()\">"
|
"<body onload=\"doOnLoad()\">\n"
|
||||||
"<svg id=\"mysvg\" width=\"%f\" height=\"%f\">";
|
"<svg id=\"mysvg\" width=\"%f\" height=\"%f\">\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user