Skip to content

Fix multiple lines in bitmap label causing an error #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

Neradoc
Copy link
Contributor

@Neradoc Neradoc commented Mar 10, 2023

Fixes #183
The bounding box was ignoring multiple \n by only setting a bool when encountering one.
Did some tests with anchored positions to confirm it matched the label version.
(Which includes the fact that ending the label with empty lines is ignored).

@tannewt tannewt requested a review from jepler March 10, 2023 17:16
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you @Neradoc for the fix!

I tested it successfully on a PyPortal Titano 8.0.3

@FoamyGuy FoamyGuy merged commit 784a80b into adafruit:main Mar 13, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 13, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_BNO08X to 1.1.10 from 1.1.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_BNO08x#39 from xenomorpheus/main
  > Add upload url to release action
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_DRV2605 to 1.3.0 from 1.2.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_DRV2605#34 from kriswilk/patch-1
  > Add upload url to release action
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_LC709203F to 2.2.11 from 2.2.10:
  > Merge pull request adafruit/Adafruit_CircuitPython_LC709203F#23 from edanidzerda/main
  > Add upload url to release action

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE to 9.0.2 from 9.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#183 from brentyi/main
  > Add upload url to release action
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 2.26.0 from 2.24.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#184 from Neradoc/fix-multiple-lines-in-bitmaplabel
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#186 from Neradoc/fix-bitmap-label-anchored-position

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_GFX

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
@jepler
Copy link
Contributor

jepler commented Mar 13, 2023

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception with multiple consecutive newlines in bitmap label
3 participants