We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CustomStringConvertible
1 parent 1b956f5 commit 35315d5Copy full SHA for 35315d5
1 file changed
Sources/ZPLBuilder/Commands/Hyphen.swift
@@ -7,7 +7,7 @@
7
8
import Foundation
9
10
-public enum Hyphen: ZPLCommandConvertible {
+public enum Hyphen: ZPLCommandConvertible, CustomStringConvertible {
11
/// \\&. Carriage return/line feed
12
case `return`
13
/// \\(*). Soft hyphen (word break with a dash)
@@ -24,4 +24,8 @@ public enum Hyphen: ZPLCommandConvertible {
24
case .backslash: return #"\\"#
25
}
26
27
+
28
+ public var description: String {
29
+ command
30
+ }
31
0 commit comments