|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75629 - branches/quickbook-dev/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-11-22 18:49:59
Author: danieljames
Date: 2011-11-22 18:49:58 EST (Tue, 22 Nov 2011)
New Revision: 75629
URL: http://svn.boost.org/trac/boost/changeset/75629
Log:
Quickbook: Remove incorrect line number.
There's no pressing need to have a line number here. Could possibly
create an error per duplicate attribute with the correct line numbers.
I have half a plan to integrate the docinfo grammar with the main
grammar, this would involve arranging the action calls so that the full
position info is available. Would probably also process the document
attributes before the docinfo attributes.
Text files modified:
branches/quickbook-dev/tools/quickbook/src/doc_info_actions.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
Modified: branches/quickbook-dev/tools/quickbook/src/doc_info_actions.cpp
==============================================================================
--- branches/quickbook-dev/tools/quickbook/src/doc_info_actions.cpp (original)
+++ branches/quickbook-dev/tools/quickbook/src/doc_info_actions.cpp 2011-11-22 18:49:58 EST (Tue, 22 Nov 2011)
@@ -185,8 +185,7 @@
if(!duplicates.empty())
{
- // TODO: This is the *end* of the document info.
- detail::outwarn(actions.current_file, pos.base())
+ detail::outwarn(actions.current_file->path)
<< (duplicates.size() > 1 ?
"Duplicate attributes" : "Duplicate attribute")
<< ":" << detail::utf8(boost::algorithm::join(duplicates, ", "))
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