Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75221 - branches/quickbook-dev/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-11-01 14:59:23


Author: danieljames
Date: 2011-11-01 14:59:23 EDT (Tue, 01 Nov 2011)
New Revision: 75221
URL: http://svn.boost.org/trac/boost/changeset/75221

Log:
Quickbook: Change the anchor markup for headers.

Use a phrase with an id inside the header.

Using an anchor before the heading was causing problems when the heading
wasn't inside a section.

We can't use an anchor inside the header when it links to itself, as it
messes up getting the title for the link. Using an empty phrase means
that it will just get the empty title for the phrase. Thanks to John
Maddock for the idea.

This does generate slightly odd markup. We could possibly use the old
style markup whenever section depth > 0, since we would know that we're
inside a section, but that seems like an unnecessary complication.
Text files modified:
   branches/quickbook-dev/tools/quickbook/src/actions.cpp | 1 -
   1 files changed, 0 insertions(+), 1 deletions(-)

Modified: branches/quickbook-dev/tools/quickbook/src/actions.cpp
==============================================================================
--- branches/quickbook-dev/tools/quickbook/src/actions.cpp (original)
+++ branches/quickbook-dev/tools/quickbook/src/actions.cpp 2011-11-01 14:59:23 EDT (Tue, 01 Nov 2011)
@@ -364,7 +364,6 @@
             level = heading_list.get_tag() - block_tags::heading1 + 1;
         }
 
-
         write_anchors(actions, actions.out);
 
         if (!generic && qbk_version_n < 103) // version 1.2 and below


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk