| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:04c30f17-c281-1aef-ab18-8bcaf05f2273 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9C06:1CCA14:BEE9AF:1015438:6A531DE0 |
| html-safe-nonce | b8581d7f9ec06c2370dc0fc94cdc0920e6031d015a7affb946316d35a1964ef7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzA2OjFDQ0ExNDpCRUU5QUY6MTAxNTQzODo2QTUzMURFMCIsInZpc2l0b3JfaWQiOiI0MDkzNjIyNTM4MDcyMTY5OTUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e68d203348f7b2598819df1dd99cb0840d91eaab39a60bdd23d3d426cd9c06ff |
| hovercard-subject-tag | pull_request:1899737901 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-escpos/python-escpos/pull/645/files |
| twitter:image | https://avatars.githubusercontent.com/u/12175851?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12175851?s=400&v=4 |
| og:image:alt | Description
This implements software_columns() as a new feature to help in the tricky task of printing texts in columns or aligning multiple texts in different alignments within the same line.
The ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-escpos/python-escpos git https://github.com/python-escpos/python-escpos.git |
| octolytics-dimension-user_id | 16302939 |
| octolytics-dimension-user_login | python-escpos |
| octolytics-dimension-repository_id | 32363483 |
| octolytics-dimension-repository_nwo | python-escpos/python-escpos |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32363483 |
| octolytics-dimension-repository_network_root_nwo | python-escpos/python-escpos |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python-escpos/python-escpos/pull/645/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-escpos%2Fpython-escpos%2Fpull%2F645%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-escpos%2Fpython-escpos%2Fpull%2F645%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-escpos%2Fpython-escpos |
| Reload | https://github.com/python-escpos/python-escpos/pull/645/files |
| Reload | https://github.com/python-escpos/python-escpos/pull/645/files |
| Reload | https://github.com/python-escpos/python-escpos/pull/645/files |
| Please reload this page | https://github.com/python-escpos/python-escpos/pull/645/files |
|
python-escpos
| https://github.com/python-escpos |
| python-escpos | https://github.com/python-escpos/python-escpos |
|
Notifications
| https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos |
|
Fork
313
| https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos |
|
Star
1.3k
| https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos |
|
Code
| https://github.com/python-escpos/python-escpos |
|
Issues
63
| https://github.com/python-escpos/python-escpos/issues |
|
Pull requests
24
| https://github.com/python-escpos/python-escpos/pulls |
|
Discussions
| https://github.com/python-escpos/python-escpos/discussions |
|
Actions
| https://github.com/python-escpos/python-escpos/actions |
|
Projects
| https://github.com/python-escpos/python-escpos/projects |
|
Security and quality
0
| https://github.com/python-escpos/python-escpos/security |
|
Insights
| https://github.com/python-escpos/python-escpos/pulse |
|
Code
| https://github.com/python-escpos/python-escpos |
|
Issues
| https://github.com/python-escpos/python-escpos/issues |
|
Pull requests
| https://github.com/python-escpos/python-escpos/pulls |
|
Discussions
| https://github.com/python-escpos/python-escpos/discussions |
|
Actions
| https://github.com/python-escpos/python-escpos/actions |
|
Projects
| https://github.com/python-escpos/python-escpos/projects |
|
Security and quality
| https://github.com/python-escpos/python-escpos/security |
|
Insights
| https://github.com/python-escpos/python-escpos/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython-escpos%2Fpython-escpos%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos%2Fissues%2Fnew%2Fchoose |
| patkan | https://github.com/patkan |
| python-escpos:master | https://github.com/python-escpos/python-escpos/tree/master |
| belono:belono/issue27 | https://github.com/belono/python-escpos/tree/belono/issue27 |
|
Conversation
2
| https://github.com/python-escpos/python-escpos/pull/645 |
|
Commits
12
| https://github.com/python-escpos/python-escpos/pull/645/commits |
|
Checks
0
| https://github.com/python-escpos/python-escpos/pull/645/checks |
|
Files changed
| https://github.com/python-escpos/python-escpos/pull/645/files |
| Please reload this page | https://github.com/python-escpos/python-escpos/pull/645/files |
|
New feature: Software columns
| https://github.com/python-escpos/python-escpos/pull/645/files#top |
|
Show all changes
12 commits
| https://github.com/python-escpos/python-escpos/pull/645/files |
|
546391c
add type hint Alignment
belono May 30, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/546391cb9c3d246d536cb5abb269ed4d36e175ce |
|
3ec5cf9
Add static method padding()
belono May 30, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/3ec5cf99735a46cbbdde50d6fba357f577cb53f0 |
|
0e794f4
Add static method truncate()
belono May 30, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/0e794f4bf0d5e8ad54f6f39342cf6f4761bebe2e |
|
673504e
Add static method _repeat_last()
belono May 30, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/673504e33198d267a6cef426380c2be34247d366 |
|
ecff7ea
Add private method _rearrange_into_cols()
belono May 30, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/ecff7ea417c56a0df874649732a8f2f26a914ada |
|
c093d5f
Add private method _add_padding_into_cols()
belono May 30, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/c093d5f18a893b04a4b51670d019efb8165b10c0 |
|
ddda04e
Add public method software_columns
belono Jun 2, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/ddda04e3b55198bc2a0dc51a4c3414c93f91879b |
|
5f18648
Make truncate and padding private staticmethods
belono Jun 2, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/5f1864807bdac3afc43bfa48b92d89986eec8525 |
|
26c302a
Revert "add type hint Alignment"
belono Jun 3, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/26c302a186675b6a36a9f81836f69f2affa477e2 |
|
86fc0fe
Add type hint Alignment
belono Jun 3, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/86fc0fe69fd99c9ae9fa78846e5313f31470a581 |
|
c67ffe7
Fix typo in docstring
belono Jun 3, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/c67ffe7b4fc4ffef4ac361b635222b2931e1bdb7 |
|
7470e58
Merge branch 'master' into belono/issue27
patkan Jul 11, 2024
| https://github.com/python-escpos/python-escpos/pull/645/commits/7470e589cfb73511bb6a7cd3a807e7b797de334c |
|
Clear filters
| https://github.com/python-escpos/python-escpos/pull/645/files |
| Please reload this page | https://github.com/python-escpos/python-escpos/pull/645/files |
| Please reload this page | https://github.com/python-escpos/python-escpos/pull/645/files |
| src/escpos/escpos.py | https://github.com/python-escpos/python-escpos/pull/645/files#diff-91425ded8755c4787655c26fd1d5c170d51b6953802ca2ba55ad9dd8bab0191e |
|
View file
| https://github.com/belono/python-escpos/blob/7470e589cfb73511bb6a7cd3a807e7b797de334c/src/escpos/escpos.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python-escpos/python-escpos/pull/645/{{ revealButtonHref }} |
|
| https://github.com/python-escpos/python-escpos/pull/645/files#diff-91425ded8755c4787655c26fd1d5c170d51b6953802ca2ba55ad9dd8bab0191e |
|
| https://github.com/python-escpos/python-escpos/pull/645/files#diff-91425ded8755c4787655c26fd1d5c170d51b6953802ca2ba55ad9dd8bab0191e |
|
| https://github.com/python-escpos/python-escpos/pull/645/files#diff-91425ded8755c4787655c26fd1d5c170d51b6953802ca2ba55ad9dd8bab0191e |
|
| https://github.com/python-escpos/python-escpos/pull/645/files#diff-91425ded8755c4787655c26fd1d5c170d51b6953802ca2ba55ad9dd8bab0191e |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |