Last modified: 2011-03-13 18:04:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2930, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 930 - Italics and bold not quite right
Italics and bold not quite right
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-22 13:11 UTC by Daniel U. Thibault
Modified: 2011-03-13 18:04 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel U. Thibault 2004-11-22 13:11:54 UTC
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]]''.
Comment 1 Leah 2004-12-09 22:10:53 UTC
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>'".
Comment 2 Antoine "hashar" Musso (WMF) 2005-01-31 23:34:54 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links