Author Topic: New repro for a fixed issue (extra prefix spaces added in markdown)  (Read 402 times)

spongyryno

  • Community Member
  • Posts: 53
  • Hero Points: 0
The original issue: https://community.slickedit.com/index.php/topic,18394.msg

If I create a markdown with this:

Code: [Select]
```PowerShell

Get-Foo

```

...and then I cut and paste the Get-Foo line, it now pastes correctly (there is no extra space added at the beginning of the line).

However, if I add another section (or just duplicate this entire code block in the markdown), as in:

Code: [Select]

```PowerShell

Get-Foo

```

```PowerShell

Get-Foo

```


...then now, when I cut and paste the 2nd Get-Foo, it once again adds a space at the beginning.

Can we fix this?

spongyryno

  • Community Member
  • Posts: 53
  • Hero Points: 0
Can someone respond?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6919
  • Hero Points: 531
I wasn't able to follow your steps. No idea what I'm doing wrong.

spongyryno

  • Community Member
  • Posts: 53
  • Hero Points: 0
The repro is easy, and I just verified it repros 100% of the time even with a brand-new SlickEdit config (I completely deleted mine, and just chose the default options).

I'm running SlickEdit Pro 2023 (v28.0.2.0 64-bit Qt5)

Just start with a markdown file that contains both PowerShell sections below, so the entire contents of the file is:

Code: [Select]
```PowerShell

Get-Foo

```

```PowerShell

Get-Foo

```

Now, go onto the line with the second Get-Foo, and have nothing selected. "Cut" the line to the clipboard with <Ctrl-X>. Now, "paste" the line with <Ctrl-V>.

Notice there a space inserted at the beginning of the line. Why?

If you do the same repro on the first Get-Foo, it works correctly.




Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6919
  • Hero Points: 531
Reproduced...It doesn't happen if you paste right after the ```PowerShell line. You have to paste from the blank line after the ```PowerShell line.

We will look into this

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6919
  • Hero Points: 531
Re: New repro for a fixed issue (extra prefix spaces added in markdown)
« Reply #5 on: June 01, 2024, 06:46:37 PM »
A hot fix is available for this.

Download the hot fix here:

https://www.slickedit.com/hotfixes

Then load the hot fix: Help>Product Updates>Load Hot Fix...

spongyryno

  • Community Member
  • Posts: 53
  • Hero Points: 0
Re: New repro for a fixed issue (extra prefix spaces added in markdown)
« Reply #6 on: June 15, 2024, 07:18:34 PM »
Fixed.