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

Spaces at the beginning of lines are stuffed when using heredoc #265

Closed
sanfrecce-osaka opened this issue Jul 27, 2021 · 1 comment
Closed

Comments

@sanfrecce-osaka
Copy link

Description

Expected

Spaces at the beginning of line are not stuffed when using heredoc

irb(main):001:0" foo = <<FOO
irb(main):002:0"   abcdefg
irb(main):003:0> FOO
=> "  abcdefg\n"

Actual

Case1

Spaces at the beginning of lines are packed after finalization

Image from Gyazo

Case2

The following will cause the spaces at the beginning of the line to be stuffed

  1. Input spaces at the beginning of line and start a new line
  2. Enter the delete key

Image from Gyazo

Result of irb_info

irb(main):001:0> irb_info
=>
Ruby version: 3.0.1
IRB version: irb 1.3.6 (2021-06-19)
InputMethod: ReidlineInputMethod with Reline 0.2.5
.irbrc path: /Users/moritsukamasatoshi/.irbrc
RUBY_PLATFORM: x86_64-darwin20

Terminal Emulator

iTerm2 3.4.6

Setting Files

Not used

@aycabta
Copy link
Member

aycabta commented Sep 22, 2021

Thank you for your reporting, this is fixed by #291.

@aycabta aycabta closed this as completed Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants