https://bugzilla.wikimedia.org/show_bug.cgi?id=49314
Web browser: ---
Bug ID: 49314
Summary: Cite should insert space between backlinks and content
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JS/token-stream transforms
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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>
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l