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 (smtp.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 985C419E0034 for ; Sat, 26 Dec 2015 00:47:55 +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 EA9F3B5D86D for ; Sat, 26 Dec 2015 01:20:23 +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 BE60D18CC7AF for ; Sat, 26 Dec 2015 01:20:23 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id A928E1205A1; Sat, 26 Dec 2015 01:20:20 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 11A9B120500 for ; Sat, 26 Dec 2015 01:20:16 +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=4cKhkH+awQKYyxHIpT+xj5dM+Aw=; b=e2yCUAsyXkuqArYjUF Jvh2G8I/GzsaSguFLOjr28J/PpW4aEr+fm/UD2V2d0yHGLDSoHSslp6uR3NK59N0 x8k9jq/TPWAEBLfSJNr4Zkug4bArUOZ+D6N7WJ2zpB36aLtfjx1Qs6VJQeyLjffq eStkqgES4JXrXF1pi9NwZi7K4= Received: by filter0835p1mdw1.sendgrid.net with SMTP id filter0835p1mdw1.22265.567D6CBA56 2015-12-25 16:20:10.84930162 +0000 UTC Received: from herokuapp.com (ec2-54-147-202-51.compute-1.amazonaws.com [54.147.202.51]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id KSxVAasoTZ6OwqKve_I8yw for ; Fri, 25 Dec 2015 16:20:11.000 +0000 (UTC) Date: Fri, 25 Dec 2015 16:20:10 +0000 From: sawadatsuyoshi@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 47075 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11871 X-Redmine-Issue-Author: sawa X-Redmine-Sender: sawa 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS4AMELw1T7BSUgbcJZR0SZHk3DFx82W4KqpyG tD1JyKbHW2J1iq4Eilg9VIXqmAFO7lXh2vrA7DVjOTzLacvhIAsIwBp25PDqz1bIQn/msWbtGdbiDi GPkhUF+MAQ9gprQp7/S2b9Z0POUv2r0er9M1Jg6jvkFuHUuzA8XOVm19xg== X-SendGrid-Contentd-ID: {"test_id":"1451060413"} X-ML-Name: ruby-core X-Mail-Count: 72479 Subject: [ruby-core:72479] [Ruby trunk - Bug #11871] [Open] 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 reported by Tsuyoshi Sawada. ---------------------------------------- Bug #11871: Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content https://bugs.ruby-lang.org/issues/11871 * Author: Tsuyoshi Sawada * Status: Open * Priority: Normal * Assignee: * ruby -v: 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- 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/