From fc705efac35303cd281f41d36a13757b6d9e1486 Mon Sep 17 00:00:00 2001 From: Nayuki Minase Date: Mon, 18 Apr 2016 20:44:02 +0000 Subject: [PATCH] Added white background rectangle to SVG XML code output, in all language versions. --- cpp/QrCode.cpp | 1 + java/io/nayuki/qrcodegen/QrCode.java | 1 + javascript/qrcodegen.js | 1 + python/qrcodegen.py | 1 + 4 files changed, 4 insertions(+) diff --git a/cpp/QrCode.cpp b/cpp/QrCode.cpp index 866c33a..3e3e5ab 100644 --- a/cpp/QrCode.cpp +++ b/cpp/QrCode.cpp @@ -171,6 +171,7 @@ std::string qrcodegen::QrCode::toSvgString(int border) const { sb << "\n"; sb << "\n"; + sb << "\t\n" sb << "\t\n"); sb.append("\n"); sb.append(String.format("\n", size + border * 2)); + sb.append("\t\n"); sb.append("\t\n"; result += "\n"; result += "\n"; + result += "\t\n"; result += "\t + """.format(self.size + border * 2, " ".join(parts))