Page MenuHomePhabricator

Cite should insert space between backlinks and content
Closed, ResolvedPublic

Description

We are not reliably inserting a space between the backlinks and the reference content in the references section:

echo '<ref name=foo>a</ref><ref name=foo/><references/>' | node parse --extensions ref,references
<body><span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"a"},"attrs":{"name":"foo"}}' id="cite_ref-foo-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref name=foo>a</ref>","dsr":[0,21,14,6]}'><a href="#cite_note-foo-1">[1]</a></span><span about="#mwt5" class="reference" data-mw='{"name":"ref","attrs":{"name":"foo"}}' id="cite_ref-foo-1-1" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref name=foo/>","dsr":[21,36,15,0]}'><a href="#cite_note-foo-1">[1]</a></span><ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references" data-parsoid='{"tsr":[36,49],"selfClose":true,"src":"<references/>","dsr":[36,49,13,0]}'><li about="#cite_note-foo-1" id="cite_note-foo-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-foo-1-0">1.0</a> <a href="#cite_ref-foo-1-1">1.1</a></span><span>a</span></li></ol>
</body>

Note the missing space in <a href="#cite_ref-foo-1-1">1.1</a></span><span>a</span>

Should probably be: <a href="#cite_ref-foo-1-1">1.1</a></span> <span>a</span>


Version: unspecified
Severity: normal

Details

Reference
bz49314

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:00 AM
bzimport set Reference to bz49314.

Related URL: https://gerrit.wikimedia.org/r/68286 (Gerrit Change Ie67ba1c332451b60107f6fb946efeafc15485b50)

https://gerrit.wikimedia.org/r/68286 (Gerrit Change Ie67ba1c332451b60107f6fb946efeafc15485b50) | change APPROVED and MERGED [by jenkins-bot]