Commits

ajones  committed b2345f7

Added pageref class to html links to potentially enable page number for html files on printing using css.

  • Participants
  • Parent commits 98e9f7b

Comments (0)

Files changed (1)

                 target_doc = app.builder.env.figid_docname_map[target]
                 link = "%s#%s" % (app.builder.get_relative_uri(docname, target_doc),
                                   target)
-                html = '<a href="%s">%s</a>' % (link, labelfmt %(figids[target]))
+                html = '<a class="pageref" href="%s">%s</a>' % (link, labelfmt %(figids[target]))
                 ref_info.replace_self(raw(html, html, format='html'))
             else:
                 ref_info.replace_self(Text(labelfmt % (figids[target])))