Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68876 - branches/quickbook-filenames/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-02-14 19:08:35


Author: danieljames
Date: 2011-02-14 19:08:33 EST (Mon, 14 Feb 2011)
New Revision: 68876
URL: http://svn.boost.org/trac/boost/changeset/68876

Log:
Count lines and columns from 1 in the quickbook iterator.
Text files modified:
   branches/quickbook-filenames/tools/quickbook/src/iterator.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: branches/quickbook-filenames/tools/quickbook/src/iterator.hpp
==============================================================================
--- branches/quickbook-filenames/tools/quickbook/src/iterator.hpp (original)
+++ branches/quickbook-filenames/tools/quickbook/src/iterator.hpp 2011-02-14 19:08:33 EST (Mon, 14 Feb 2011)
@@ -16,7 +16,7 @@
 {
     struct file_position
     {
- file_position() : line(0), column(0) {}
+ file_position() : line(1), column(1) {}
         file_position(int l, int c) : line(l), column(c) {}
     
         int line;
@@ -52,12 +52,12 @@
     
             if (val == '\r') {
                 ++position_.line;
- position_.column = 0;
+ position_.column = 1;
             }
             else if (val == '\n') {
                 if (previous_ != '\r') {
                     ++position_.line;
- position_.column = 0;
+ position_.column = 1;
                 }
             }
             else {


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