|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69179 - in branches/quickbook-filenames/tools/quickbook: src test/doc-info
From: dnljms_at_[hidden]
Date: 2011-02-22 15:43:21
Author: danieljames
Date: 2011-02-22 15:43:10 EST (Tue, 22 Feb 2011)
New Revision: 69179
URL: http://svn.boost.org/trac/boost/changeset/69179
Log:
Tweak doc info for empty attributes. Maybe these should fail.
Added:
branches/quickbook-filenames/tools/quickbook/test/doc-info/copyright-fail2.quickbook (contents, props changed)
Text files modified:
branches/quickbook-filenames/tools/quickbook/src/doc_info_grammar.cpp | 10 ++++------
branches/quickbook-filenames/tools/quickbook/test/doc-info/Jamfile.v2 | 1 +
branches/quickbook-filenames/tools/quickbook/test/doc-info/empty-attributes.quickbook | 2 ++
3 files changed, 7 insertions(+), 6 deletions(-)
Modified: branches/quickbook-filenames/tools/quickbook/src/doc_info_grammar.cpp
==============================================================================
--- branches/quickbook-filenames/tools/quickbook/src/doc_info_grammar.cpp (original)
+++ branches/quickbook-filenames/tools/quickbook/src/doc_info_grammar.cpp 2011-02-22 15:43:10 EST (Tue, 22 Feb 2011)
@@ -167,7 +167,7 @@
);
local.doc_copyright =
- +( +( local.doc_copyright_year
+ *( +( local.doc_copyright_year
[actions.values.entry(ph::arg1, ph::arg2, doc_info_tags::copyright_year)]
>> space
>> !( '-'
@@ -203,12 +203,10 @@
;
local.doc_authors =
- local.doc_author
+ *( local.doc_author
>> space
- >> *( !(cl::ch_p(',') >> space)
- >> local.doc_author
- >> space
- )
+ >> !(cl::ch_p(',') >> space)
+ )
;
local.attribute_rules[doc_info_attributes::authors] = &local.doc_authors;
Modified: branches/quickbook-filenames/tools/quickbook/test/doc-info/Jamfile.v2
==============================================================================
--- branches/quickbook-filenames/tools/quickbook/test/doc-info/Jamfile.v2 (original)
+++ branches/quickbook-filenames/tools/quickbook/test/doc-info/Jamfile.v2 2011-02-22 15:43:10 EST (Tue, 22 Feb 2011)
@@ -23,4 +23,5 @@
[ quickbook-test source-mode-1.6 ]
[ quickbook-test copyright1 ]
[ quickbook-fail-test copyright-fail1 ]
+ [ quickbook-fail-test copyright-fail2 ]
;
Added: branches/quickbook-filenames/tools/quickbook/test/doc-info/copyright-fail2.quickbook
==============================================================================
--- (empty file)
+++ branches/quickbook-filenames/tools/quickbook/test/doc-info/copyright-fail2.quickbook 2011-02-22 15:43:10 EST (Tue, 22 Feb 2011)
@@ -0,0 +1,6 @@
+[article Invalid copyright
+[quickbook 1.5]
+[copyright No year]
+]
+
+Maybe this should pass?
\ No newline at end of file
Modified: branches/quickbook-filenames/tools/quickbook/test/doc-info/empty-attributes.quickbook
==============================================================================
--- branches/quickbook-filenames/tools/quickbook/test/doc-info/empty-attributes.quickbook (original)
+++ branches/quickbook-filenames/tools/quickbook/test/doc-info/empty-attributes.quickbook 2011-02-22 15:43:10 EST (Tue, 22 Feb 2011)
@@ -2,9 +2,11 @@
[version]
[id]
[dirname]
+[copyright]
[copyright 2011]
[purpose]
[category]
+[authors]
[authors [,]]
[license]
[last-revision]
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