[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]

Odd rendering of web content - extra spaces



I have encountered an odd issue with the rendering of web pages using
eww which only occurs when running emacspeak.

It seems that emacspeak is inserting additional spaces into content.
This is particularly noticeable in <pre> blocks - for example, it messes
up the formatting of source code.

I have rendered the same page with emacspeak loaded and without
emacspeak loaded. This only occurs when emacspeak is loaded.

Below is an example. The first block is how the page looks when
Emacspeak is not loaded. The second is how it looks when it is.

Normal rendering, no emacspeak loaded

>>> from mailman.app.lifecycle import create_list
>>> mlist = create_list('test@xxxxxxxxxxx')
>>> from mailman.testing.helpers import (specialized_message_from_string
...   as message_from_string)
>>> msg = message_from_string("""\
... From: aperson@xxxxxxxxxxx
... To: test@xxxxxxxxxxx
... Subject: An archived message
... Message-ID: <12345>
... X-Message-ID-Hash: RSZCG7IGPHFIRW3EMTVMMDNJMNCVCOLE
...
... Here is an archived message.
... """)

Additional spaces being added - emacspeak loaded

   >>>   from   mailman.app.lifecycle   import   create_list
 >>>   mlist   =   create_list  (  'test@xxxxxxxxxxx'  )
 >>>   from   mailman.testing.helpers   import   (  specialized_message_from_string
 ...     as   message_from_string  )
 >>>   msg   =   message_from_string  (  """  \
 ...   From: aperson@xxxxxxxxxxx
 ...   To: test@xxxxxxxxxxx
 ...   Subject: An archived message
 ...   Message-ID: <12345>
 ...   X-Message-ID-Hash: RSZCG7IGPHFIRW3EMTVMMDNJMNCVCOLE
 ...
 ...   Here is an archived message.
 ...   """  )

Notice the additional spaces around the parenthesis for example.

I don't know if this is just an issue from some xslt transformation
Emacspeak is doing (and which only shows up in <pre> blocks because
whitespace matters in those blocks) or if it is some other issue.

It does make working with source code in web pages much harder as it
throws out all the formatting.

It would be a difficult bug to catch if you rely only on the speech
output as the lines sound the same. However, if you use both the speech
and the visual feedback from the code, it makes things a lot harder.

I update Emacspeak from the github repo fairly often. First noticed this
only a few weeks back. THe content was rendered correctly before that.


--
Tim Cross



|All Past Years |Current Year|


If you have questions about this archive or had problems using it, please contact us.

Contact Info Page