Jump to content

Topic on Help talk:Lint errors/tidy-whitespace-bug

Amire80 (talkcontribs)
IKhitron (talkcontribs)

Thanks for tagging. What is #text at all?

SSastry (WMF) (talkcontribs)

#text is a text node. Anyway, this one is harder to track because of the unclosed <div> tag in the opening template which pretty much makes all lint errors useless since it doesn't give you source offsets. We'll have to figure out if there is a non-hacky way in Parsoid we can look inside the template-wrapped content to resolve this better.

Anyway, after playing around with it, the issue is with {{ללא גלישה| כ"{{ Mediawiki:Gadget-Checkty}}" ) }}נותן. The outer template is generating a span tag with nowrap css, and ends in a whitespace (from the template argument). The following string after the argument will not break a line with Remex. But, Tidy moves the white-space out of the span tag which gives the browser an opportunity to break the line. But, in practice, for this instance, this is a problem only for not-wide-enough screens which it is for me in the parsermigration-edit view. Look for the red wikEd string in your browser. You will see that the remex view is a bit wider than Tidy. But, if I reduce the browser font-size a little bit, this difference goes away. So, this is not a big deal in this case. But, if you wanted to fix it, you can move the whitespace that is right now after the ')' to after the '}}'. But, you can ignore this as well.

Reply to "Tips to finding it?"