OSDN Git Service

投稿するツイートの末尾の全角スペースを除去しない
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 16 Feb 2014 01:15:18 +0000 (10:15 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sun, 16 Feb 2014 01:16:20 +0000 (10:16 +0900)
OpenTween/Resources/ChangeLog.txt
OpenTween/Tween.cs
OpenTween/Twitter.cs

index aa434b6..4355cdc 100644 (file)
@@ -4,6 +4,7 @@
  * NEW: ファイルメニューに「ツイートURLを開く」を追加
   - https://twitter.com/*****/statuses/1234567890 のような形式のURLを直接開くことが出来ます
  * NEW: プロフィール画像の右クリックメニューに「再読み込み」を追加
+ * CHG: 投稿するツイートの末尾の全角スペースを除去しない
  * FIX: サムネイル画像の取得をキャンセルするとエラーが発生する場合がある問題の修正
  * FIX: サムネイル画像の読み込み中に画面の更新が遅くなる問題の修正
  * FIX: 壊れたプロフィール画像を取得したり不安定な回線で読み込みを行うと操作不能な状態になることがある問題の修正
index 764d9bf..5cdadb0 100644 (file)
@@ -2087,7 +2087,7 @@ namespace OpenTween
                 }
             }
 
-            _history[_history.Count - 1] = new PostingStatus(StatusText.Text.Trim(), _reply_to_id, _reply_to_name);
+            _history[_history.Count - 1] = new PostingStatus(StatusText.Text, _reply_to_id, _reply_to_name);
 
             if (SettingDialog.Nicoms)
             {
@@ -2201,7 +2201,7 @@ namespace OpenTween
                         footer += " " + SettingDialog.Status.Trim();
                 }
             }
-            args.status.status = header + StatusText.Text.Trim() + footer;
+            args.status.status = header + StatusText.Text + footer;
 
             if (ToolStripMenuItemApiCommandEvasion.Checked)
             {
index 0279f96..50dfef9 100644 (file)
@@ -464,8 +464,6 @@ namespace OpenTween
 
             if (Twitter.AccountState != MyCommon.ACCOUNT_STATE.Valid) return "";
 
-            postStr = postStr.Trim();
-
             if (Regex.Match(postStr, "^DM? +(?<id>[a-zA-Z0-9_]+) +(?<body>.+)", RegexOptions.IgnoreCase | RegexOptions.Singleline).Success)
             {
                 return SendDirectMessage(postStr);
@@ -522,8 +520,6 @@ namespace OpenTween
 
             if (Twitter.AccountState != MyCommon.ACCOUNT_STATE.Valid) return "";
 
-            postStr = postStr.Trim();
-
             HttpStatusCode res;
             var content = "";
             try
@@ -580,8 +576,6 @@ namespace OpenTween
                 return "Auth Err:try to re-authorization.";
             }
 
-            postStr = postStr.Trim();
-
             var mc = Regex.Match(postStr, "^DM? +(?<id>[a-zA-Z0-9_]+) +(?<body>.+)", RegexOptions.IgnoreCase | RegexOptions.Singleline);
 
             HttpStatusCode res;