Hi,

The "only" directive is not a preprocessor. Actually, it works as 
post-processor.

In your situation, the input reST is recognized like following:

<ul>
  <li>New glunkifier for fribulating text. 
  <li>(eight more entries here) 
  <li>Zoodler has been enhanced. 
</ul>
<only condition="versionA">
  <ul>
    <li>Numbulator now handles XQT48. 
  </ul>
</only>
<only condition="versionB">
  <ul>
    <li>Numbulator now handles XQT49. 
  </ul>
</only>
<ul>
  <li>Framulator is .005% faster. 
</ul>


So your list is splitted to 4 lists by "only" directive.

I think the directive is not good to this case.
It seems using other preprocessor is good for your case.

Thanks,
Takeshi KOMIYA


2016年7月27日水曜日 23時34分17秒 UTC+9 Warren Block:
>
> Hello.  I'm new to Sphinx, but so far it is making sense.  Using Sphinx 
> 1.4.4 on FreeBSD at present. 
>
> I am trying to use a single .rst file for two versions of a software 
> project.  Part of this file has a bullet list describing features of the 
> software. 
>
>   * New glunkifier for fribulating text. 
>
>   (eight more entries here) 
>
>   * Zoodler has been enhanced. 
>
>   * Numbulator now handles XQT48. 
>
> The other version of this software has a slightly different entry for 
> one of the bullet points, and an additional point entirely.  Rather than 
> have two entirely different but very similar bullet lists, I'd like to 
> just make the other points conditional: 
>
>
>   * New glunkifier for fribulating text. 
>
>   (eight more entries here) 
>
>   * Zoodler has been enhanced. 
>
> .. only:: versionA 
>
>   * Numbulator now handles XQT48. 
>
> .. only:: versionB 
>
>   * Numbulator now handles XQT49. 
>
>   * Framulator is .005% faster. 
>
>
> That does not work, of course.  At best, the changed and additional 
> entries are seen as a new bulleted list. 
>
> The obvious solution is two complete lists, one for only:: versionA and 
> one for only:: versionB.  But the text is mostly identical, and it is 
> easy for identical entries to get out of sync. Is there any way to 
> conditionally add the different or additional bullet points to a single 
> list? 
>
> Thanks! 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to