[geary/geary-0.11] Fix composer not displaying RTL languages in the right direction.



commit 5b90fa7434113426caa57736209e79af20742315
Author: Michael James Gratton <mike vee net>
Date:   Sat Jun 4 18:18:27 2016 +1000

    Fix composer not displaying RTL languages in the right direction.
    
    Use the HTML dir="auto" algorithm for setting the direction based on the
    first strongly LTR or RTL character found in the email.
    
    Proper support should let the user specify the direction, but this is
    better for now.
    
    Patch courtesy Oliver <ogtifs mail com>
    
    Bug 713607
    
    * src/client/composer/composer-widget.vala (ComposerWidget::HTML_BODY):
      Add dir="auto" for the message body.

 src/client/composer/composer-widget.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 615b951..950f491 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -125,7 +125,7 @@ public class ComposerWidget : Gtk.EventBox {
         }
         </style>
         </head><body>
-        <div id="message-body" contenteditable="true"></div>
+        <div id="message-body" contenteditable="true" dir="auto"></div>
         </body></html>""";
     private const string CURSOR = "<span id=\"cursormarker\"></span>";
     


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]