Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ESCPOS_NET/Emitters/BaseCommandEmitter/PrintCommands.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Linq;
using System;
using System.Linq;
using ESCPOS_NET.Emitters.BaseCommandValues;

namespace ESCPOS_NET.Emitters
Expand All @@ -8,6 +9,9 @@ public abstract partial class BaseCommandEmitter : ICommandEmitter
/* Printing Commands */
public virtual byte[] Print(string data)
{
if (data == null)
throw new ArgumentNullException(nameof(data));

// Fix OSX or Windows-style newlines
data = data.Replace("\r\n", "\n");
data = data.Replace("\r", "\n");
Expand Down