Page MenuHomePhabricator

The syntaxhighlight highlighting splits the line
Closed, ResolvedPublicBUG REPORT

Description

The syntaxhighlight tag with highlight parameter does not work properly any more. The code

<syntaxhighlight lang=java line highlight=4>
public class T {
	static {
		i = 5;
		i = i + 1;
	}
	static int i = 5;
}
</syntaxhighlight>

returns

Screenshot_20201216-170217_Samsung Internet.jpg (266×1 px, 33 KB)
instead of expected
Screenshot_20201216-170647_WebInspector.jpg (248×1 px, 35 KB)

The highlighted line 4 is shown as two lines, numeration and the rest. Found on Samsung Internet, but I've asked to check on other browsers. The problem does not exist for anonym users.

Event Timeline

IKhitron changed the subtype of this task from "Task" to "Bug Report".Dec 16 2020, 3:12 PM

Change 652560 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/SyntaxHighlight_GeSHi@master] Fix classname lineno->linenos

https://gerrit.wikimedia.org/r/652560

Change 652560 merged by jenkins-bot:
[mediawiki/extensions/SyntaxHighlight_GeSHi@master] Fix classname lineno->linenos

https://gerrit.wikimedia.org/r/652560