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 <[email protected]>:
>
> 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 [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.

-- 
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