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 9256D1A00A08 for ; Tue, 29 Mar 2016 20:45:20 +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 11F46B5D867 for ; Tue, 29 Mar 2016 21:22:08 +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 7C4C518CC7B1 for ; Tue, 29 Mar 2016 21:22:08 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id DF8AD12049B; Tue, 29 Mar 2016 21:22:07 +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 03B88120464 for ; Tue, 29 Mar 2016 21:22:03 +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=dgMRyHmf0orccJZcFjov1shqwFY=; b=wfn8Y7+KRTLGD6zAFU 2qPPhpKH6jD95yNq6zVhMkdQgUtBwIZbF32vJxPZXXKqkDaF6lc4KZ6j04S/8ypO qpGGyKrgEs+BLoBzREQhba5Grg7X40XJxfivraX3xQh8EkCaCsV9pJeN4in5OeUR VuEyIHdNPGtbctMQkmcniTs7w= Received: by filter0500p1mdw1.sendgrid.net with SMTP id filter0500p1mdw1.24309.56FA736514 2016-03-29 12:21:57.435832006 +0000 UTC Received: from herokuapp.com (ec2-54-161-181-122.compute-1.amazonaws.com [54.161.181.122]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id WkuBtEF-R9ql99KZHKNDVg Tue, 29 Mar 2016 12:21:57.364 +0000 (UTC) Date: Tue, 29 Mar 2016 12:21:57 +0000 From: naruse@airemix.jp To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 49310 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11871 X-Redmine-Issue-Author: sawa X-Redmine-Sender: naruse 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS6OEbGkOgB0YRQX0sJVbKze+OH/8j1jUms41w nFtBlwaRPhl3DLBKt4MOBYAETgOnLZLENf01CrEzLzjIwPI3ImL4G7GPSOKJ1PIqUgtrJgTzGvLsag ylXpx6Ahr/XXUbgFZnAW5+d5cYc3GZG16t3b0W+4WRKl4J0ddWcjvnuBxQ== X-ML-Name: ruby-core X-Mail-Count: 74686 Subject: [ruby-core:74686] [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 Yui NARUSE. Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONE ruby_2_3 r54398 merged revision(s) 53398. ---------------------------------------- Bug #11871: Heredoc unindentation with <<~ with single-quoted identifier flush-lefts the content https://bugs.ruby-lang.org/issues/11871#change-57816 * 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: DONE ---------------------------------------- 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/