OSDN Git Service

発言一覧上で改行を含むツイートのツールチップが1行目しか表示されない現象を回避
authorKimura Youichi <kim.upsilon@bucyou.net>
Fri, 26 May 2017 22:49:12 +0000 (07:49 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 27 May 2017 03:50:25 +0000 (12:50 +0900)
Fixes: d1e8cd58 ("スクリーンリーダーで引用ツイートの内容が発言一覧上でも読み上げられるように修正")

OpenTween/Tween.cs

index 864ed57..9577ee0 100644 (file)
@@ -4898,7 +4898,7 @@ namespace OpenTween
             {
                 string[] sitem= {"",
                                  Post.Nickname,
-                                 Post.IsDeleted ? "(DELETED)" : Post.AccessibleText,
+                                 Post.IsDeleted ? "(DELETED)" : Post.AccessibleText.Replace('\n', ' '),
                                  Post.CreatedAt.ToString(SettingManager.Common.DateTimeFormat),
                                  Post.ScreenName,
                                  "",
@@ -4910,7 +4910,7 @@ namespace OpenTween
             {
                 string[] sitem = {"",
                                   Post.Nickname,
-                                  Post.IsDeleted ? "(DELETED)" : Post.AccessibleText,
+                                  Post.IsDeleted ? "(DELETED)" : Post.AccessibleText.Replace('\n', ' '),
                                   Post.CreatedAt.ToString(SettingManager.Common.DateTimeFormat),
                                   Post.ScreenName + Environment.NewLine + "(RT:" + Post.RetweetedBy + ")",
                                   "",