Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@david-allison
Copy link
Member

@david-allison david-allison commented Jan 29, 2026

Purpose / Description

<br> in the collection was converted to \n in the EditText, these weren't comparable

Fixes

Approach

git bisect
Then write a test
Then fix a test
Then write more tests

How Has This Been Tested?

Tests

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

@david-allison david-allison force-pushed the 20174-newline-discard-changes branch from ccc71f2 to 559f510 Compare January 29, 2026 02:47
@david-allison david-allison added the Review High Priority Request for high priority review label Jan 29, 2026
@david-allison david-allison changed the title fix: discard changes is not shown if note contains a newline fix: discard changes was shown if note contains a newline Jan 29, 2026
@david-allison david-allison force-pushed the 20174-newline-discard-changes branch from 559f510 to d8a2cd9 Compare January 29, 2026 20:54
`<br>` in the collection was converted to `\n` in the
EditText, these weren't comparable

Fixes 20174
@david-allison david-allison force-pushed the 20174-newline-discard-changes branch from d8a2cd9 to da92dc4 Compare January 29, 2026 20:54
@david-allison david-allison changed the title fix: discard changes was shown if note contains a newline fix: discard changes was shown if note contained a newline Jan 29, 2026
Copy link
Member

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

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

git bisect
Then write a test
Then fix a test
Then write more tests

This is The Way

@mikehardy mikehardy added this pull request to the merge queue Jan 30, 2026
@mikehardy mikehardy added Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) and removed Review High Priority Request for high priority review Needs Review labels Jan 30, 2026
Merged via the queue into ankidroid:main with commit 2529cac Jan 30, 2026
15 checks passed
@github-actions github-actions bot removed the Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) label Jan 30, 2026
@github-actions github-actions bot added this to the 2.24 release milestone Jan 30, 2026
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.

Unconditional discard changes when closing note editor

2 participants