Skip to content

Fix: Preserve leading spaces in database structure view (Issue #3893) - #4091

Draft
Sohoocelery wants to merge 1 commit into
sqlitebrowser:masterfrom
Sohoocelery:patch-1
Draft

Sohoocelery wants to merge 1 commit into
sqlitebrowser:masterfrom
Sohoocelery:patch-1

Conversation

@Sohoocelery

Copy link
Copy Markdown

Summary

Fixes issue #3893 where leading spaces in table and column names are being collapsed in the database structure view.

Changes

  • Changed simplified() to trimmed() on line 58 of DbStructureModel.cpp
  • simplified() collapses all whitespace (including leading/trailing and internal)
  • trimmed() only removes leading and trailing whitespace, preserving internal spaces

Related Issues

Closes #3893

… simplified() with trimmed() to preserve whitespace
@mgrojo

mgrojo commented Jun 21, 2026

Copy link
Copy Markdown
Member

@Sohoocelery This breaks the preference "Database > Remove line breaks in schema view" and doesn't fix the issue #3893 (see the name column).

imagen

Maybe what you wanted is the behaviour provided by disabling that check in Preferences?

@lucydodo
lucydodo marked this pull request as draft September 13, 2026 00:53

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Leading spaces in name are collapsed in db structure

3 participants