File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ const xml = `
106106 <small>
107107 <text-line>Date: {{moment date format="DD/MM/YYYY HH:mm:ss"}}</text-line>
108108 <text-line size="1:0">{{numeral price format="$ 0,0.00"}}</text-line>
109+ <text-line size="1:0">{{paddedString}}</text-line>
109110 </small>
110111 <line-feed />
111112 <underline>
@@ -144,6 +145,7 @@ const data = {
144145 description: ' This is a description' ,
145146 date: new Date (),
146147 price: 1.99 ,
148+ paddedString: ' Line padded with 4 spaces' ,
147149 condictionA: false ,
148150 condictionB: true ,
149151 barcode: ' 12345678' ,
@@ -155,4 +157,3 @@ const buffer = EscPos.getBufferFromTemplate(xml, data);
155157// send this buffer to a stream (eg.: bluetooth)
156158
157159```
158-
You can’t perform that action at this time.
0 commit comments