#234 Embedded URIs and Aliases don't alias

sandbox
closed-invalid
None
5
2013-05-14
2013-05-13
No

The example given http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases doesn't create an alias.

rb@silverbird$ rst2html-2.7.py --version
rst2html-2.7.py (Docutils 0.10 [release], Python 2.7.3, on darwin)
rb@silverbird$ rst2html-2.7.py --stylesheet=dummy
See the `Python home page <http://www.python.org>`_ for info.

This `link <Python home page_>`_ is an alias to the link above.
<stdin>:4: (ERROR/3) Cannot embed stylesheet 'dummy': No such file or directory.
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.10: http://docutils.sourceforge.net/" />
<title></title>
<--- Cannot embed stylesheet 'dummy': No such file or directory. --->
</head>
<body>
<div class="document">

<p>See the <a class="reference external" href="http://www.python.org">Python home page</a> for info.</p>
<p>This <a class="reference external" href="Pythonhomepage_">link</a> is an alias to the link above.</p>
</div>
</body>
</html>

Discussion

  • Richard Brooksby

    Apologies if the formatting is unclear. Sourceforge was not playing nice.

    There's a ^D after "This link <Python home page_>_ is an alias to the link above." and the problem is shown in the line

    <p>This <a class="reference external" href="Pythonhomepage_">link</a> is an alias to the link above.</p>
    

    which I believe should read

    <p>This <a class="reference external" href="http://www.python.org">link</a> is an alias to the link above.</p>
    
     
    Last edit: Richard Brooksby 2013-05-13
  • David Goodger

    David Goodger - 2013-05-14
    • status: open --> closed-invalid
    • assigned_to: David Goodger
     
  • Richard Brooksby

    Argh, so it is. Sorry to waste your time. I'll have to wait for this to get through to the various ports collections. Many thanks for some great tools.

     

Log in to post a comment.