Page MenuHomePhabricator

Italics and bold not quite right
Closed, DeclinedPublic

Description

Author: D.U.Thibault

Description:
If you have:
<nowiki>

  • En [[astronomie]], l'''[[année sidérale]]'' compte 365,242&nbsp;198&nbsp;79

jours et mesure la période réelle de révolution de la [[Terre]] par rapport aux
étoiles.

  • Les astronomes parlent aussi d'''[[année anomalistique]]'' et ''[[année

tropicale|tropicale]]''.
</nowiki>
It renders OK, like so:

  • En [[astronomie]], l'''[[année sidérale]]'' compte 365,242&nbsp;198&nbsp;79

jours et mesure la période réelle de révolution de la [[Terre]] par rapport aux
étoiles.

  • Les astronomes parlent aussi d'''[[année anomalistique]]'' et ''[[année

tropicale|tropicale]]''.

but if you concatenate the lines:
<nowiki>

  • En [[astronomie]], l'''[[année sidérale]]'' compte 365,242&nbsp;198&nbsp;79

jours et mesure la période réelle de révolution de la [[Terre]] par rapport aux
étoiles. Les astronomes parlent aussi d'''[[année anomalistique]]'' et ''[[année
tropicale|tropicale]]''.
</nowiki>
...you now have bold across the intervening words:

  • En [[astronomie]], l'''[[année sidérale]]'' compte 365,242&nbsp;198&nbsp;79

jours et mesure la période réelle de révolution de la [[Terre]] par rapport aux
étoiles. Les astronomes parlent aussi d'''[[année anomalistique]]'' et ''[[année
tropicale|tropicale]]''.


Version: unspecified
Severity: normal

Details

Reference
bz930

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 7:04 PM
bzimport set Reference to bz930.
bzimport added a subscriber: Unknown Object (MLST).

qleah wrote:

Put more simply, nesting is unintuitive and produces strange HTML. As another
example:

"'''a''' and ''b'''" produces "<strong>a' <em>and</em> b</strong>"
instead of the more literal "<strong>a'<em> and </em>b</strong>"
or the more obvious "<strong>a</strong> and <em>b</em>'".

When the parser find:
l'''annee'' foo bar l'''annee''

''' : start bold text
'' : start embed text
''' : stop bold text
'' : stop embed text

We had a similar issue with l''''annee''', the hack was to assume
that if we have 4 quotes, one of them is part of the text and user
want to start bold text.

That hack can not be used for embed, cause with ''' we have no way
to know if it is one quote + starting embed or simply starting bold.

Workarounds:

1: l<nowiki>'</nowiki>''annee''
2: l'<em>annee</em>

We will not fix this one.

epriestley changed the task status from Declined to Resolved by committing Unknown Object (Diffusion Commit).Mar 4 2015, 8:20 AM
epriestley added a commit: Unknown Object (Diffusion Commit).
Aklapper changed the task status from Resolved to Declined.Mar 4 2015, 11:40 AM
Aklapper claimed this task.