From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.28.69 with SMTP id l5cs286384ebc; Wed, 27 Jan 2010 14:15:32 -0800 (PST) Received: by 10.90.135.14 with SMTP id i14mr3901013agd.24.1264630531736; Wed, 27 Jan 2010 14:15:31 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 2si816625gxk.67.2010.01.27.14.15.31; Wed, 27 Jan 2010 14:15:31 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 17D4C185832A; Wed, 27 Jan 2010 17:15:31 -0500 (EST) Received: from kuovi.tilus.net (kuovi.tilus.net [80.68.89.168]) by rubyforge.org (Postfix) with ESMTP id 93E331858302 for ; Wed, 27 Jan 2010 17:15:20 -0500 (EST) Received: by kuovi.tilus.net (Postfix, from userid 1000) id C3CB56011; Thu, 28 Jan 2010 00:15:19 +0200 (EET) From: Tero Tilus To: Anirudh Sanjeev In-reply-to: <1264626708.47.0.495243760209.issue53@masanjin.net> References: <1264626708.47.0.495243760209.issue53@masanjin.net> Date: Thu, 28 Jan 2010 00:15:19 +0200 Message-Id: <1264630303-sup-9772@tilus.net> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Content-Type: multipart/mixed; boundary="=-1264630519-635334-9458-5420-1-=" MIME-Version: 1.0 Cc: sup-devel Subject: Re: [sup-devel] [issue53] Error if the composed text has tabs in the first character X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --=-1264630519-635334-9458-5420-1-= Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Anirudh Sanjeev, 2010-01-27 23:11: > Steps to reproduce: > 1. Compose message with a tab as a first character > 2. View composed message in the compose-mode Looks like tabs are counted as 1 (instead of 8) when calculating string display width. Dunno why this did not affect thread-view-mode thought. Patch attached. -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ --=-1264630519-635334-9458-5420-1-= Content-Disposition: attachment; filename="0001-Count-tabs-as-8-chars-when-calculating-display-lengt.patch" Content-Type: application/octet-stream; name="0001-Count-tabs-as-8-chars-when-calculating-display-lengt.patch" Content-Transfer-Encoding: base64 RnJvbSAyYTAyMDliOWRiZDI0NmUxNzkxYjA4ZjA5MDZmMjczMjdhMWQ1ZjM5 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBUZXJvIFRpbHVzIDx0 ZXJvQHRpbHVzLm5ldD4KRGF0ZTogVGh1LCAyOCBKYW4gMjAxMCAwMDowNToy NSArMDIwMApTdWJqZWN0OiBbUEFUQ0hdIENvdW50IHRhYnMgYXMgOCBjaGFy cyB3aGVuIGNhbGN1bGF0aW5nIGRpc3BsYXkgbGVuZ3RoCgpTaWduZWQtb2Zm LWJ5OiBUZXJvIFRpbHVzIDx0ZXJvQHRpbHVzLm5ldD4KLS0tCiBsaWIvc3Vw L3V0aWwucmIgfCAgICAyICstCiAxIGZpbGVzIGNoYW5nZWQsIDEgaW5zZXJ0 aW9ucygrKSwgMSBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9saWIvc3Vw L3V0aWwucmIgYi9saWIvc3VwL3V0aWwucmIKaW5kZXggODYxZGI3Zi4uNjc1 Nzk3MyAxMDA2NDQKLS0tIGEvbGliL3N1cC91dGlsLnJiCisrKyBiL2xpYi9z dXAvdXRpbC5yYgpAQCAtMTgxLDcgKzE4MSw3IEBAIGNsYXNzIFN0cmluZwog ICAgICAgc2NhbigvLi91KS5zaXplCiAgICAgZWxzZQogICAgICAgc2l6ZQot ICAgIGVuZAorICAgIGVuZCArIDcgKiAoY291bnQgIlx0IikKICAgZW5kCiAK ICAgZGVmIGNhbWVsX3RvX2h5cGh5Ci0tIAoxLjUuNi41Cgo= --=-1264630519-635334-9458-5420-1-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --=-1264630519-635334-9458-5420-1-=--