Skip to content
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

Overflow TOTP URL on printing HTML export #10647

Closed
fwiep opened this issue May 1, 2024 · 0 comments
Closed

Overflow TOTP URL on printing HTML export #10647

fwiep opened this issue May 1, 2024 · 0 comments

Comments

@fwiep
Copy link
Contributor

fwiep commented May 1, 2024

Overview

When an exported database is printed, long note- or TOTP-lines are not wrapped. They overflow and some/several characters are lost at the edge of the page. Altering two specific CSS styles in the export fixes this issue.

Steps to Reproduce

  1. Open the attached dummy database: dummy-passwords.zip, password: wDxW%ag7JRSg
  2. Export to HTML: menu Database / Export / HTML
  3. Open exported HTML file in, for example, Chromium for printing
  4. Press Ctrl+P for a print preview
  5. Notice the overflow of the entry's TOTP URL (see screenshot) dummy-with-overflow

Expected Behavior

All characters of long note- and TOTP-lines should be visible in the exported (printed) document.

Actual Behavior

Long lines are not wrapped, but overflow, causing data loss in the process.

Context

Removing the <table>'s margin and setting the entry's text-attribute to overflow-wrap:anywhere in the exported HTML fixes the issue for me.

table {
  margin-left: 0;
}
.username,
.password,
.url,
.attr {
  overflow-wrap: anywhere;
}

See the following screenshot:
dummy-without-overflow


KeePassXC - Version 2.7.7
Revision: 68e2dd8

Qt 5.15.13
Debugging mode is disabled.

Operating system: Fedora Linux 40 (Workstation Edition)
CPU architecture: x86_64
Kernel: linux 6.8.7-300.fc40.x86_64

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • Passkeys
  • SSH Agent
  • KeeShare
  • YubiKey
  • Secret Service Integration

Cryptographic libraries:

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

No branches or pull requests

2 participants