dittodhole/dotnet-Svg.Contrib.Render

GW command is missing a trailing comma

dittodhole opened this issue · 0 comments

return $"GW{horizontalStart},{verticalStart},{numberOfBytesPerRow},{rows}";

Mitigation

public class CustomBootstrapper : Svg.Contrib.Render.EPL.DefaultBootstrapper
{
  /// <inheritdoc/>
  protected override Svg.Contrib.Render.EPL.EplCommands CreateEplCommands() => new CustomEplCommands();
}

public class CustomEplCommands : Svg.Contrib.Render.EPL.EplCommands
{
  /// <inheritdoc/>
  public override string GraphicDirectWrite(
    int horizontalStart,
    int verticalStart,
    int numberOfBytesPerRow,
    int rows)
  {
    var result = base.GraphicDirectWrite(
      horizontalStart,
      verticalStart,
      numberOfBytesPerRow,
      rows);

    return string.Concat(
      result, // $"GW{horizontalStart},{verticalStart},{numberOfBytesPerRow},{rows}"
      ",");
  }
}