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

            Bug ID: 171267
           Summary: Text containing markdown syntax cannot be pasted
                    without formatting directly
           Product: LibreOffice
           Version: 26.2.1.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When pasting text containing markdown syntax and a line break as "unformatted
text", Calc will not show the text import dialogue directly but ask the user
first whether they want to paste as "unformatted text" or "markdown".

I encountered this bug in my workflow with text that contains three asterisks
in a row on every line of text, without it being intended to be markdown
formatting. To my knowledge the example provided to replicate the issue is not
even valid markdown syntax.

Markdown is a markup language to format text. When the user explicitly chooses
to paste text _without_ formatting, this should exclude _any_ type of
formatting.

Furthermore, choosing to paste text with markdown formatting will not add any
formatting to the pasted text. This suggests that the markdown detection when
pasting unformatted text was a mistake.

The erroneous behaviour is new and affects version 26. I tested v25.2.3.2 and
did not encounter the bug there.


___________________________________________
Calc: threaded
Version: 26.2.1.2 (X86_64)
Build ID: 620(Build:2)
CPU threads: 16; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster;
VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded

Steps to Reproduce:
1. Copy the following text:
x
x***

2. Open Calc, right-click on a cell and choose "Paste Special > Unformatted
Text".

Actual Results:
Calc shows a dialogue "Paste As" with the option to paste as "Unformatted Text"
or "Markdown". After clicking "OK", the "Text Import" dialogue opens.

Expected Results:
The "Text Import" dialogue should be shown immediately. Pasting as unformatted
text should never ever contain any formatting or interpret any characters as
formatting syntax.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
The bug is not present in version 25.2.3.2 on Windows, or version 25.8.5.2 on
Ubuntu. I could not test version 26 on Ubuntu because it is not available there
yet. I suspect the bug is present on all operating systems.

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

Reply via email to