https://bugs.documentfoundation.org/show_bug.cgi?id=172467

            Bug ID: 172467
           Summary: HTML view when copying to clipboard shouldn't contain
                    tabs
           Product: LibreOffice
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 207453
  --> https://bugs.documentfoundation.org/attachment.cgi?id=207453&action=edit
Example that triggers the bug

When I copy the contents of the attached file and paste into Firefox, tab
characters appear where the original only had spaces. Pasting the HTML view
into PowerShell reveals that the tab characters come from the whitespace that
Writer adds when formatting the HTML. To fix this, Writer should keep
whitespace unaltered inside the text content of HTML tags.
```
PS C:\WINDOWS\system32> [System.Windows.Forms.Clipboard]::GetData("HTML
Format")
Version:1.0
StartHTML:0000000121
EndHTML:0000000910
StartFragment:0000000521
EndFragment:0000000893
<!DOCTYPE html>
<html>
<head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title></title>
        <meta name="generator" content="LibreOffice 25.8.6.2 (Windows)"/>
        <style type="text/css">
                @page { size: 8.5in 11in; margin: 0.79in }
                p { line-height: 115%; margin-bottom: 0.1in; background:
transparent }
        </style>
</head>
<body lang="en-US" link="#000080" vlink="#800000" dir="ltr">
<ul><li style="display: block"><p><font color="#000000"><font face="Calibri,
sans-serif"><font size="2" style="font-size: 10pt">Developed
        reliability-focused software systems, validation infrastructure, and
        operational tooling for globally distributed CloudFront
        control-plane and data-plane services operating at
hyperscale.</font></font></font></p></li>
</ul>
</body>
</html>
PS C:\WINDOWS\system32>
[System.BitConverter]::ToString([System.Text.Encoding]::UTF8.GetBytes([System.Windows.Forms.Clipboard]::GetData("HTML
Format")))
56-65-72-73-69-6F-6E-3A-31-2E-30-0D-0A-53-74-61-72-74-48-54-4D-4C-3A-30-30-30-30-30-30-30-31-32-31-0D-0A-45-6E-64-48-54-4D-4C-3A-30-30-30-30-30-30-30-39-31-30-0D-0A-53-74-61-72-74-46-72-61-67-6D-65-6E-74-3A-30-30-30-30-30-30-30-35-32-31-0D-0A-45-6E-64-46-72-61-67-6D-65-6E-74-3A-30-30-30-30-30-30-30-38-39-33-0D-0A-3C-21-44-4F-43-54-59-50-45-20-68-74-6D-6C-3E-0D-0A-3C-68-74-6D-6C-3E-0D-0A-3C-68-65-61-64-3E-0D-0A-09-3C-6D-65-74-61-20-68-74-74-70-2D-65-71-75-69-76-3D-22-63-6F-6E-74-65-6E-74-2D-74-79-70-65-22-20-63-6F-6E-74-65-6E-74-3D-22-74-65-78-74-2F-68-74-6D-6C-3B-20-63-68-61-72-73-65-74-3D-75-74-66-2D-38-22-2F-3E-0D-0A-09-3C-74-69-74-6C-65-3E-3C-2F-74-69-74-6C-65-3E-0D-0A-09-3C-6D-65-74-61-20-6E-61-6D-65-3D-22-67-65-6E-65-72-61-74-6F-72-22-20-63-6F-6E-74-65-6E-74-3D-22-4C-69-62-72-65-4F-66-66-69-63-65-20-32-35-2E-38-2E-36-2E-32-20-28-57-69-6E-64-6F-77-73-29-22-2F-3E-0D-0A-09-3C-73-74-79-6C-65-20-74-79-70-65-3D-22-74-65-78-74-2F-63-73-73-22-3E-0D-0A-09-09-40-70-61-67-65-20-7B-20-73-69-7A-65-3A-20-38-2E-35-69-6E-20-31-31-69-6E-3B-20-6D-61-72-67-69-6E-3A-20-30-2E-37-39-69-6E-20-7D-0D-0A-09-09-70-20-7B-20-6C-69-6E-65-2D-68-65-69-67-68-74-3A-20-31-31-35-25-3B-20-6D-61-72-67-69-6E-2D-62-6F-74-74-6F-6D-3A-20-30-2E-31-69-6E-3B-20-62-61-63-6B-67-72-6F-75-6E-64-3A-20-74-72-61-6E-73-70-61-72-65-6E-74-20-7D-0D-0A-09-3C-2F-73-74-79-6C-65-3E-0D-0A-3C-2F-68-65-61-64-3E-0D-0A-3C-62-6F-64-79-20-6C-61-6E-67-3D-22-65-6E-2D-55-53-22-20-6C-69-6E-6B-3D-22-23-30-30-30-30-38-30-22-20-76-6C-69-6E-6B-3D-22-23-38-30-30-30-30-30-22-20-64-69-72-3D-22-6C-74-72-22-3E-0D-0A-3C-75-6C-3E-3C-6C-69-20-73-74-79-6C-65-3D-22-64-69-73-70-6C-61-79-3A-20-62-6C-6F-63-6B-22-3E-3C-70-3E-3C-66-6F-6E-74-20-63-6F-6C-6F-72-3D-22-23-30-30-30-30-30-30-22-3E-3C-66-6F-6E-74-20-66-61-63-65-3D-22-43-61-6C-69-62-72-69-2C-20-73-61-6E-73-2D-73-65-72-69-66-22-3E-3C-66-6F-6E-74-20-73-69-7A-65-3D-22-32-22-20-73-74-79-6C-65-3D-22-66-6F-6E-74-2D-73-69-7A-65-3A-20-31-30-70-74-22-3E-44-65-76-65-6C-6F-70-65-64-0D-0A-09-72-65-6C-69-61-62-69-6C-69-74-79-2D-66-6F-63-75-73-65-64-20-73-6F-66-74-77-61-72-65-20-73-79-73-74-65-6D-73-2C-20-76-61-6C-69-64-61-74-69-6F-6E-20-69-6E-66-72-61-73-74-72-75-63-74-75-72-65-2C-20-61-6E-64-0D-0A-09-6F-70-65-72-61-74-69-6F-6E-61-6C-20-74-6F-6F-6C-69-6E-67-20-66-6F-72-20-67-6C-6F-62-61-6C-6C-79-20-64-69-73-74-72-69-62-75-74-65-64-20-43-6C-6F-75-64-46-72-6F-6E-74-0D-0A-09-63-6F-6E-74-72-6F-6C-2D-70-6C-61-6E-65-20-61-6E-64-20-64-61-74-61-2D-70-6C-61-6E-65-20-73-65-72-76-69-63-65-73-20-6F-70-65-72-61-74-69-6E-67-20-61-74-20-68-79-70-65-72-73-63-61-6C-65-2E-3C-2F-66-6F-6E-74-3E-3C-2F-66-6F-6E-74-3E-3C-2F-66-6F-6E-74-3E-3C-2F-70-3E-3C-2F-6C-69-3E-0D-0A-3C-2F-75-6C-3E-0D-0A-3C-2F-62-6F-64-79-3E-0D-0A-3C-2F-68-74-6D-6C-3E
```
(The `09`'s in the hexdump correspond to the tab character.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to