From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 4A3BB19E006B for ; Wed, 3 Feb 2016 19:37:53 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 0B9A8B5D832 for ; Wed, 3 Feb 2016 20:12:11 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 950C518CC7B1 for ; Wed, 3 Feb 2016 20:12:11 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id D2F201204C6; Wed, 3 Feb 2016 20:12:11 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id D335A120494 for ; Wed, 3 Feb 2016 20:12:08 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=7rHZWmwCuN1c3F/8So2errNA/+8=; b=TRkXeqz0pstzYJ3TiR OGs6fjZ/a8YCyqWy0yMH2xpIFKspwNKvjNR/pi3m4OwVdzy+XwVp2Hha0jpm7yqR VrBpAB8/k90IYKIqmBJYcCCgojUqKPjB4p1WTf65qJwepR2zV1Sa3GfRJ47eTjqZ lJi/gM/Rl3BsUAnRXHfZXVLDc= Received: by filter0507p1mdw1.sendgrid.net with SMTP id filter0507p1mdw1.19112.56B1E08512 2016-02-03 11:12:05.192805146 +0000 UTC Received: from herokuapp.com (ec2-54-145-193-237.compute-1.amazonaws.com [54.145.193.237]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id qq4Doj59R56kYLh6TwM0rQ Wed, 03 Feb 2016 11:12:04.582 +0000 (UTC) Date: Wed, 03 Feb 2016 11:12:04 +0000 From: usa@garbagecollect.jp To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 48285 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11871 X-Redmine-Issue-Author: sawa X-Redmine-Sender: usa X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7V98d7Xl4KnuEYhOgYjGRbojKaqA/cC56Yf0 /lSqqth6prr9icI4al51Yaf+fuN85oVB02uV0P7fEEMvGzSCcYTizU34nnhBBpTYM3Tw6oG9JGorZH 7qQRyHrTdgdyJs+y++M8lW5Wm6ZgCPkE4UkqkNvsK8zoO+heNz8hXUR6+w== X-ML-Name: ruby-core X-Mail-Count: 73686 Subject: [ruby-core:73686] [Ruby trunk Bug#11871] Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11871 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED ---------------------------------------- Bug #11871: Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content https://bugs.ruby-lang.org/issues/11871#change-56882 * Author: Tsuyoshi Sawada * Status: Closed * Priority: Normal * Assignee: * ruby -v: 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] * Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED ---------------------------------------- Heredoc unindentation with `<<~` works as expected when the identifier is bare or double-quoted: ~~~ s = <<~_ fiwfewifjf iofwejfweifwe fjiofwejfweiof f fiwejfweof _ puts s ~~~ or ~~~ s = <<~"_" fiwfewifjf iofwejfweifwe fjiofwejfweiof f fiwejfweof _ puts s ~~~ Output: ~~~ fiwfewifjf iofwejfweifwe fjiofwejfweiof f fiwejfweof ~~~ But with a single-quoted identifier, the content is flushed left: ~~~ s = <<~'_' fiwfewifjf iofwejfweifwe fjiofwejfweiof f fiwejfweof _ puts s ~~~ Output: ~~~ fiwfewifjf iofwejfweifwe fjiofwejfweiof f fiwejfweof ~~~ -- https://bugs.ruby-lang.org/