Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51403 - in trunk/tools/quickbook: . test
From: daniel_james_at_[hidden]
Date: 2009-02-22 18:48:51


Author: danieljames
Date: 2009-02-22 18:48:51 EST (Sun, 22 Feb 2009)
New Revision: 51403
URL: http://svn.boost.org/trac/boost/changeset/51403

Log:
Accept space between 'section:' and the section id.

Ref #2712.
Text files modified:
   trunk/tools/quickbook/block.hpp | 3 ++-
   trunk/tools/quickbook/test/quickbook-manual.quickbook | 2 +-
   2 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/tools/quickbook/block.hpp
==============================================================================
--- trunk/tools/quickbook/block.hpp (original)
+++ trunk/tools/quickbook/block.hpp 2009-02-22 18:48:51 EST (Sun, 22 Feb 2009)
@@ -125,7 +125,8 @@
                 begin_section =
                        "section"
>> hard_space
- >> (':' >> (*(alnum_p | '_')) [assign_a(actions.section_id)]
+ >> (':' >> space >>
+ (*(alnum_p | '_')) [assign_a(actions.section_id)]
                         | eps_p [assign_a(actions.section_id)]
                         )
>> phrase [actions.begin_section]

Modified: trunk/tools/quickbook/test/quickbook-manual.quickbook
==============================================================================
--- trunk/tools/quickbook/test/quickbook-manual.quickbook (original)
+++ trunk/tools/quickbook/test/quickbook-manual.quickbook 2009-02-22 18:48:51 EST (Sun, 22 Feb 2009)
@@ -70,7 +70,7 @@
 [def __include__ [link quickbook.syntax.block.include Include]]
 [def __import__ [link quickbook.syntax.block.import Import]]
 
-[section:intro Introduction]
+[section : intro Introduction]
 
 [:[*['["Why program by hand in five days what you can spend five years of your
 life automating?]]]


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