remark icon indicating copy to clipboard operation
remark copied to clipboard

Highlighting adds a space to code when at least one space is present after asterisk

Open malcolmbarrett opened this issue 5 years ago • 1 comments

When highlighting lines of code, if there are one or more spaces after the asterisk, an extra space is being added.

You would think that these two would look the same except for the highlighting, but they don't:

```ruby
def add (a, b)
* a + b
end
```

```ruby
def add (a, b)
 a + b
end
```

While these two, on the other hand, are identical besides the highlighting.

```ruby
def add (a, b)
*a + b
end
```

```ruby
def add (a, b)
a + b
end
```

malcolmbarrett avatar Oct 12 '18 20:10 malcolmbarrett

Yes! I hate this too! Makes code formatting so difficult!

utdrmac avatar Oct 13 '18 02:10 utdrmac