Git Product home page Git Product logo

Comments (3)

receiptline avatar receiptline commented on May 18, 2024

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.

DS992 avatar DS992 commented on May 18, 2024

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.

receiptline avatar receiptline commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.