That's not quite going to work for putting a break in the *attribute* of an 
element (it will work for the *content* of an element though), so I'll 
probably be putting that tip to use in other places.

Thanks!


On Wednesday, February 6, 2019 at 11:55:11 PM UTC-6, Jonathan Gossage wrote:
>
>
> Take a look at 
> https://salishsea-meopar-docs.readthedocs.io/en/latest/work_env/sphinx_docs.html#forcing-line-breaks
> It shows you how to put line breaks anywhere in a Sphinx document.
>
> On Wed, Feb 6, 2019 at 10:47 PM Komiya Takeshi <i.tk...@gmail.com 
> <javascript:>> wrote:
>
>> Hi Chad,
>>
>> How do you generate <a> tag in your extension? custom node? raw node?
>> or other solution?
>> The extensions can enhance Sphinx by many ways. So I need to know the
>> your strategy.
>>
>> Thanks,
>> Takeshi KOMIYA
>>
>> 2019年2月7日(木) 7:38 Chad S <chads...@gmail.com <javascript:>>:
>> >
>> > Hi,
>> >
>> > Working on an extension for Sphinx 1.6.6. I need to obtain output in 
>> html that, among other things, will do something like this in links that 
>> get written:
>> >
>> > <a href="page.html" title="Some text.
>> > A second line of text.
>> > For clarity, a third.">
>> >
>> > Yes, ugly, but the tooltip in the browser is lineated and that is 
>> meaningful.
>> >
>> > However, the two pythonic means of putting breaks in strings aren't 
>> working.
>> >
>> > stringval = 'Some text.\r\nA second line of text.\r\nFor clarity, a 
>> third'
>> >
>> > or
>> >
>> > stringval ='''Some text.
>> > A second line of text.
>> > For clarity, a third.'''
>> >
>> > In both cases, the final output is:
>> >
>> > <a href="age.html" title="Some text. A second line of text. For 
>> clarity, a third.">
>> >
>> > The breaks seem to have been stripped out.
>> >
>> > Also, attempts to use "&#13;", which are valid for raw html, do not 
>> work because Sphinx seems to inflexibly convert any ampersand it finds to 
>> "&amp;".  So this:
>> >
>> > stringval='"Some text.&#13;A second line of text&#13;For clarity, a 
>> third.'
>> >
>> > turns into this:
>> >
>> > <a href="page.html" title="Some text.&amp;#13;A second line of 
>> text.&amp;#13;For clarity, a third.">
>> >
>> > Any advice on how to get the needed line breaks to the final output?
>> >
>> > 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 sphinx-users...@googlegroups.com <javascript:>.
>> > To post to this group, send email to sphinx...@googlegroups.com 
>> <javascript:>.
>> > Visit this group at https://groups.google.com/group/sphinx-users.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
>> 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 sphinx-users...@googlegroups.com <javascript:>.
>> To post to this group, send email to sphinx...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/sphinx-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
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