Comments (3)
Hello!
Thanks for using receiptline.
The current word wrapping is the same as in the console application, so the words are broken.
Equivalent to CSS word-break: break-all;
The quick br
own fox jump
s over the l
azy dog.
It's superca
lifragilisti
cexpialidoci
ous!
We will consider another word wrapping support.
Equivalent to CSS overflow-wrap: break-word;
The quick
brown fox
jumps over
the lazy
dog.
It's
supercalifra
gilisticexpi
alidocious!
from receiptline.
Could not receiptline programmatically add a "\n" when a line has a certain amount of characters before the last word?
This way you can achieve word wrap with break-word
from receiptline.
Thank you very much.
When using \n
, write as follows.
(equivalent to <br>
in html)
{width:12}
|The quick\nbrown fox\njumps over\nthe lazy\ndog.\nIt's\nsupercalifragilisticexpialidocious! |
We had a meeting yesterday to discuss the ReceiptLine language specification.
I shared this issue with attendees, and there was a suggestion that we don't need overflow-wrap: break-word;
.
I think this is because the number of characters in a column is often fixed for receipts, so \n
can handle it.
from receiptline.
Related Issues (20)
- Question: How to send kick cash drawer command to printer? HOT 2
- リモートで店舗側のプリンタを印刷させるか HOT 4
- It's not working at gb18030 HOT 2
- Example that is printing? HOT 6
- more documentation HOT 3
- feature request: Zebra printer (ZPL) support HOT 1
- Better image processing support HOT 2
- Add TypeScript typings HOT 3
- Sending print jobs through AWS Lambda HOT 1
- Alignment Problem HOT 2
- [bug] A0 characters in the first line HOT 5
- Bluetooth thermal printer - PT-210 - Lines are not displayed correctly HOT 3
- Printing HTML code HOT 7
- Small font with ESC/POS - CPL: 32 -> CPL:42 HOT 4
- Star MC-Print3 CloudPRNT Opening Cash Register HOT 2
- Cannot use designer HOT 2
- printing Hebrew language
- Does it work for any brand connected the system
- Baud rate with the Serial-LAN Converter
- Open cash drawer on TSP143III HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from receiptline.