Repository navigation
Conversation
A list of lines, e.g., plant names, prints one label for each. In the label designer it opens from the arrow beside Print, and `/api/print`, `/api/preview` and the prints of saved and demo labels take it as `list`. 1. The cells of a line, split at tabs as pasted from a spreadsheet, fill the blanks of the label in order. A label without blanks takes them as its text lines. An empty cell leaves its blank as it is. 2. A trailing "x N" after a word prints the line N times, e.g., "Basil x 20". "M3 x 10" prints once, as written. 3. Every line is checked before anything prints, and the whole list counts against `PRINT_MAX_COUNT`. Signed-off-by: DL6ER <dl6er@dl6er.de>
How to print a list in the label designer and through the API. Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
| """The cells of a line without its count and the count, else 1. Only a | ||
| count in the last cell after a word without digits counts: "M3 x 10", | ||
| "Box 2 x 3" or a cell of "x 5" alone are names, printed once.""" | ||
| counted = COUNT.fullmatch(cells[-1]) |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paste or type lines, e.g., plant names, and each prints as one label. "Basil x 20" prints that line 20 times. Cells pasted from a spreadsheet fill the label's blanks in order, and a label without blanks takes them as its lines.
It opens from the small arrow beside Print, so the main screen stays as it is. The API takes the lines as
list.