Commit 701081ed authored by HeinrichAD's avatar HeinrichAD
Browse files

Separator change

- change separator
- add documentation reference to separator changing
- remove and sort usings
parent 1a003b2d
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
namespace Svg
{
......@@ -15,7 +14,17 @@ namespace Svg
{
public override string ToString()
{
return String.Join(",", this.Select(u => u.ToString()).ToArray());
// The correct separator should be a single white space.
// More see:
// "Superfluous white space and separators such as commas can be eliminated
// (e.g., 'M 100 100 L 200 200' contains unnecessary spaces and could be expressed more compactly as 'M100 100L200 200')."
// http://www.w3.org/TR/SVGTiny12/paths.html#PathDataGeneralInformation
// https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#Notes
#if Net4
return String.Join(" ", this.Select(u => u.ToString()));
#else
return String.Join(" ", this.Select(u => u.ToString()).ToArray());
#endif
}
public static bool IsNullOrEmpty(SvgUnitCollection collection)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment