Last modified: 2014-07-10 13:13:21 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 T41643, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39643 - a lone "0" in a <syntaxhighlight> tag disappears
a lone "0" in a <syntaxhighlight> tag disappears
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SyntaxHighlight (GeSHi) (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Derk-Jan Hartman
https://sourceforge.net/tracker/?func...
: easy, upstream
Depends on:
Blocks: 37585
  Show dependency treegraph
 
Reported: 2012-08-25 12:58 UTC by Poor Yorick
Modified: 2014-07-10 13:13 UTC (History)
8 users (show)

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


Attachments

Description Poor Yorick 2012-08-25 12:58:06 UTC
When the only non-whitespace character in a <syntaxhighlight> tag is a "0", it disappears

<syntaxhighlight lang="text">
0
</syntaxhighlight>
Comment 1 Derk-Jan Hartman 2012-08-25 13:32:01 UTC
Sounds like the empty() function is being used. which considers "0" to be empty.
Comment 2 MZMcBride 2012-08-25 13:34:07 UTC
Confirmed this bug at <https://test.wikipedia.org/wiki/Bug_39643>. Marking this as easy.
Comment 3 Derk-Jan Hartman 2012-08-25 20:57:18 UTC
https://gerrit.wikimedia.org/r/21473
Comment 4 Dereckson 2012-08-27 08:19:25 UTC
Bug assigned to code submitter. Adding upstream keyword.

Upstream URL: https://sourceforge.net/tracker/?func=detail&aid=3562020&group_id=114997&atid=670231
Comment 5 Dereckson 2012-08-27 08:20:19 UTC
Fixed assignee.
Comment 6 Antoine "hashar" Musso (WMF) 2012-08-28 09:17:48 UTC
I agree we need this patch to be in upstream to avoid facing this issue once again. That is a really minor issue which we can wait to get fixed.

Apparently upstream is still active. Maybe contact http://sourceforge.net/users/benbe directly and ask him to include the fix in the next release? Apparently he is going to release a new version soon.
Comment 7 Antoine "hashar" Musso (WMF) 2012-08-28 09:19:04 UTC
Oh and maybe you want to attach the unified diff directly in the sourceforge bug report. That will be easier for upstream to merge it in.
Comment 8 Derk-Jan Hartman 2012-08-28 15:16:38 UTC
Wow, that's a really inviting bugtracking system they have at SF these days.. No wonder people are flocking to github in droves.

I can only add comments to dereckson's report. Can't upload patches, can't report a new issue.
Comment 9 Dereckson 2012-08-28 15:27:32 UTC
I will add it as soon as we agree on what patch to send. Please review my inline comments on Gerrit about coherence between one test with ===, the other test with empty().
Comment 10 Sam Reed (reedy) 2012-08-30 22:25:14 UTC
I've got upstream commit for GeSHi so I can commit it
Comment 11 Antoine "hashar" Musso (WMF) 2012-09-04 09:53:22 UTC
I have verified and merged the change, please have it upstreamed :)
Comment 12 MZMcBride 2013-02-19 09:48:40 UTC
(In reply to comment #10)
> I've got upstream commit for GeSHi so I can commit it

Bump.
Comment 13 MZMcBride 2013-02-19 09:49:59 UTC
Actually, https://test.wikipedia.org/wiki/Bug_39643 looks fixed to me. So presumably this was fixed at some point?

Poor Yorick: can you confirm?
Comment 14 Antoine "hashar" Musso (WMF) 2013-02-19 14:18:50 UTC
As a summary:

The upstream bug is http://sourceforge.net/p/geshi/bugs/215/

We have a hack with https://gerrit.wikimedia.org/r/21473

Sam updated Geshi to v1.0.8.11 https://gerrit.wikimedia.org/r/#/c/22862/


The issue is still in upstream version. Hence we keep this bug opened until upstream has merged our patch and fixed bug 215 properly.
Comment 15 se4598 2014-07-10 13:12:20 UTC
It seems this is still not submitted upstream.
@reedy: you've mentioned you have upstream commit access. Can you commit the patch there?
Comment 16 Sam Reed (reedy) 2014-07-10 13:13:21 UTC
(In reply to se4598 from comment #15)
> It seems this is still not submitted upstream.
> @reedy: you've mentioned you have upstream commit access. Can you commit the
> patch there?

I had upstream for SVN, but they're now at github... https://github.com/GeSHi/

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


Navigation
Links