all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 22250@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#22250: 25.0.50; Eww fails to break RTL paragraph
Date: Mon, 28 Dec 2015 00:09:51 +0100	[thread overview]
Message-ID: <8760zjbi9s.fsf@justinian.turtle-trading.net> (raw)
In-Reply-To: <83twn3g0ac.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Dec 2015 21:27:07 +0200")

[-- Attachment #1: Type: text/plain, Size: 1609 bytes --]

Eli Zaretskii writes:
> Out of curiosity: why are you declaring a paragraph consisting
> entirely of L2R text as R2L?  is there some real-life use case behind
> this?

As you probably guessed this is a radical simplification of the actual
problem that I have.

> (If you replace "abc" with "אבג", the display will be as you expect.)

Interesting.  It seems that I have simplyfied it a bit too much.
Although the version that I created still indicates a problem, of
course.

I experimented a bit and I can't quite exactly say what is needed to
cause the problem.  The same file/URL has it and than again not when I
try again.  It seems that "g" usually fixes it, while "G RET" usually
reproduces it, if it has happend with that particular file/URL before.
It also seems that the length of the URL has an impact, probably because
it is shown at the top of the frame and during loading of the URL (as in
"Loading http[...]").  It seems to require that the URL is longer than
the frame width.

I have no sure recipe using a file, but I have something based on a
simple 10-line HTTP server look-alike, see attachments.  Put the files
in some directory, make the script executable, execute it, and call EWW
with the URL
http://127.0.0.1:1234/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/.
If it looks good on the first call, try "G RET", than it reliably
exhibits the problem for me.  I even get it with "emacs -Q -nw".  Note
that the script depends on netcat and different versions of netcat use
different options to run a server, so the script may not work as-is for
you.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: make-html.sh --]
[-- Type: text/x-sh, Size: 396 bytes --]

#!/bin/bash

function execute () {
    sleep .5

    echo -e "HTTP/1.0 200 OK\r"
    echo -e "Content-Type: text/html; charset=utf-8\r"
    echo -e "\r"

    cat test.html
}

function loop () {
    while sleep 1; do
        echo Start
        netcat -l -s localhost -p 1234 -c "$0 execute"
        echo Handled one request
    done
}

if [ 0 = $# ]; then
    loop
else
    "$@"
fi

#### eof ####

[-- Attachment #3: test.html --]
[-- Type: text/html, Size: 683 bytes --]

  reply	other threads:[~2015-12-27 23:09 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-27 19:11 bug#22250: 25.0.50; Eww fails to break RTL paragraph Benjamin Riefenstahl
2015-12-27 19:27 ` Eli Zaretskii
2015-12-27 23:09   ` Benjamin Riefenstahl [this message]
2015-12-28  3:32     ` Eli Zaretskii
2015-12-28 16:40       ` Benjamin Riefenstahl
2015-12-28 17:12         ` Eli Zaretskii
2015-12-28 17:49           ` Eli Zaretskii
2015-12-28 18:15           ` Benjamin Riefenstahl
2015-12-28 18:30             ` Eli Zaretskii
2015-12-28 21:23               ` Benjamin Riefenstahl
2015-12-29 16:47                 ` Eli Zaretskii
2015-12-29 20:55                   ` Benjamin Riefenstahl
2015-12-29 21:03                     ` Eli Zaretskii
2015-12-29 22:33                       ` Benjamin Riefenstahl
2015-12-30 17:04                         ` Eli Zaretskii
2015-12-30 20:22                           ` Benjamin Riefenstahl
2015-12-30 20:30                             ` Benjamin Riefenstahl
2015-12-31 15:26                             ` Eli Zaretskii
2015-12-31 18:10                               ` Benjamin Riefenstahl
2015-12-31 18:23                                 ` Eli Zaretskii
2015-12-30 17:15                       ` Eli Zaretskii
2015-12-28 16:46       ` Lars Ingebrigtsen
2015-12-28 19:07     ` Benjamin Riefenstahl
2015-12-28 19:29       ` Eli Zaretskii
2015-12-27 19:30 ` Lars Ingebrigtsen
2015-12-27 19:38   ` Eli Zaretskii
2015-12-27 19:45   ` Eli Zaretskii
2015-12-27 19:49     ` Lars Ingebrigtsen
2015-12-27 20:22       ` Eli Zaretskii
2015-12-27 20:28         ` Eli Zaretskii
2015-12-27 21:00           ` Eli Zaretskii
2015-12-27 21:10             ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760zjbi9s.fsf@justinian.turtle-trading.net \
    --to=b.riefenstahl@turtle-trading.net \
    --cc=22250@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.