Re: No break space before a href tag

Dominique Meeùs <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
Irene Vatton a écrit ce qui suit, le 05/11/09 16:26 :
> Le dimanche 01 novembre 2009 à 19:06 +0100, Dominique Meeùs a écrit :
>   
>> In a situation like some text «~<a href="myref">My Refefence</a>
>> (where ~ stands for U+A0) Amaya may cut incorrectly like «
>> My Reference
>>     
> I made a lot of tests. I'm not able to reproduce this kind of bug.
> What is the Amaya version (release, platform) are you using?
> Perhaps you have to give us a more complete context (CSS that apply).
>   

Sorry for my late answer. I am in the last stable 11.2 under Ubuntu 9.10.

I forgot in which file I saw the bug but I was able to reproduce it 
easily just now. It depends indeed on some CSS: text-align: justify.

In the attached example, suppose you display it in a browser window wide 
enough to have the Amaya link on the first line. You then reduce the 
window until the link to Amaya is forced to wrap to the second line. In 
Firefox, the opening French quotation sign, attached by U+a0, goes with 
the link to Amaya. In Amaya, the non break space is not rendered 
correctly: the quotation sign may remain alone on the first line.

I installed now the 11.3-pre binary for Ubuntu. Same bug.

Here before <a></a> I may get also the queer extra space that I 
mentioned in my post of Mon, 02 Nov 2009 08:46:49 +0100 in the case of a 
comment <!--  -->. If you click some times in the main panel and in the 
source panel, you may get some queer extra space (in the display — the 
code remaining unchanged). See attached screen capture. In both case 
this happens in a paragraph with text-align: justify.

-- 
Amicalement, Dominique,
[email protected], http://www.d-meeus.be/
L’homme n’a… plus rien à faire de l’ « Esprit », il lui suffit d’être un 
Homme Neuronal (Jean-Pierre Changeux, /L’homme neuronal/).
guillemetnbsphref.html (text/html, 1.1 KB)
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Rupture de guillemet malgré nbsp devant a href</title>
  <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />
  <style type="text/css">
/*<![CDATA[*/
  p.essai {text-align: justify;}
  /*]]>*/
  </style>
</head>

<body>
  <p class="essai">J’essaie de reproduire un défaut observé au passage je ne sais plus où
  dans le cas d’un guillemet devant un lien « <a href="http://www.w3.org/Amaya/">Amaya</a> »
  dans un paragraphe qui était probablement
  un des mes alinéas habituels c’est-à-dire comme en typographie traditionnelle justifié
  et avec un retrait de première ligne (text-indent). En fait, le défaut se présente déjà
  ici rien qu’avec l’alignement justifié. Cela ne dépend donc pas du retrait de première
  ligne.</p>
</body>
</html>
queerspace.png (image/png, 56.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.