File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 201
201
</xsl : template >
202
202
203
203
<!-- Special xref-to handling for refentries -->
204
- <xsl : template match =" h:div[@class= 'refentry']" mode =" xref-to" >
204
+ <xsl : template match =" h:div[contains( @class, 'refentry') ]" mode =" xref-to" >
205
205
<xsl : choose >
206
206
<xsl : when test =" descendant::*[@class='refname']" >
207
207
<!-- Choose the first descendant element with class of refname, if one exists, and wrap in "code" tag -->
Original file line number Diff line number Diff line change @@ -202,6 +202,26 @@ toc:lower-roman
202
202
203
203
</x : scenario >
204
204
205
+ <x : scenario label =" When an XREF points to a refentry that has other roles" >
206
+ <x : context mode =" xref-to" >
207
+ <div class =" refentry pagebreak-before refentry_nospace" >
208
+ <header >
209
+ <p class =" refname" >print</p >
210
+ <p class =" refpurpose" >Output some text to stdout.</p >
211
+ </header >
212
+ <div class =" refsynopsisdiv" >
213
+ <pre class =" synopsis" >print "<em >Hello World</em >"</pre >
214
+ </div >
215
+ <div class =" refsect1" >
216
+ <h6 >Description</h6 >
217
+ <p >More description would go here</p >
218
+ </div >
219
+ </div >
220
+ </x : context >
221
+ <x : expect label =" Generated text should be refname tagged as code" ><code class =" refentry" >print</code ></x : expect >
222
+
223
+ </x : scenario >
224
+
205
225
<x : scenario label =" When an XREF points to a refentry without a refname 'p'" >
206
226
<x : context mode =" xref-to" >
207
227
<div class =" refentry" >
You can’t perform that action at this time.
0 commit comments