Commit aca8c691 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

set xml namespace and viewport-fill in svg output files

parent e42dc269
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -47,13 +47,13 @@ public:
      const std::string& class_name) {
    if (viewbox_) {
      SVG_appendLine(
          "<svg viewBox='0 0 %i %i' class='%s'>\n",
          "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox='0 0 %i %i' class='%s' viewport-fill='white'>\n",
          width,
          height,
          escapeString(class_name).c_str());
    } else {
      SVG_appendLine(
          "<svg width='%i' height='%i' class='%s'>\n",
          "<sv xmlns=\"http://www.w3.org/2000/svg\"g width='%i' height='%i' class='%s' viewport-fill='white'>\n",
          width,
          height,
          escapeString(class_name).c_str());
+1 −1
Original line number Diff line number Diff line
<svg viewBox='0 0 800 320' class='fm-chart'>
<svg xmlns="http://www.w3.org/2000/svg" viewBox='0 0 800 320' class='fm-chart' viewport-fill='white'>
  <style type='text/css'>
  <![CDATA[
  .fm-chart text, .fm-tooltip {
+1 −1
Original line number Diff line number Diff line
<svg viewBox='0 0 800 320' class='fm-chart'>
<svg xmlns="http://www.w3.org/2000/svg" viewBox='0 0 800 320' class='fm-chart' viewport-fill='white'>
  <style type='text/css'>
  <![CDATA[
  .fm-chart text, .fm-tooltip {
+1 −1
Original line number Diff line number Diff line
<svg viewBox='0 0 800 320' class='fm-chart'>
<svg xmlns="http://www.w3.org/2000/svg" viewBox='0 0 800 320' class='fm-chart' viewport-fill='white'>
  <style type='text/css'>
  <![CDATA[
  .fm-chart text, .fm-tooltip {
+1 −1
Original line number Diff line number Diff line
<svg viewBox='0 0 800 320' class='fm-chart'>
<svg xmlns="http://www.w3.org/2000/svg" viewBox='0 0 800 320' class='fm-chart' viewport-fill='white'>
  <style type='text/css'>
  <![CDATA[
  .fm-chart text, .fm-tooltip {
Loading