[geary] Fix composer not displaying RTL languages in the right direction.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Fix composer not displaying RTL languages in the right direction.
- Date: Sun, 5 Jun 2016 07:37:00 +0000 (UTC)
commit 7a26b8de9c88af4593543314efc3f9b157fa8693
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 a60da4c..2308e6b 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -124,7 +124,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]