Subject: [Boost-bugs] [Boost C++ Libraries] #1527: [program_options] Second (and subsequent) lines in tabbed text not aligned correctly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-12-19 08:29:25
#1527: [program_options] Second (and subsequent) lines in tabbed text not aligned
correctly
---------------------------+------------------------------------------------
Reporter: anonymous | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: program_options
Version: Boost 1.34.1 | Severity: Cosmetic
Keywords: wrapping wrap |
---------------------------+------------------------------------------------
When using the tab character to set an alignment for text output, the
second (and subsequent) lines are not displayed at the correct position.
It appears that the number of characters between the newline (\n) and tab
(\t) are not accounted for.
Example:
{{{
boost::program_options::options_description options("Options");
options.add_options()
("help", "help text")
("list",
"a list:\n \t"
"item1, item2, item3, item4, item5, item6, item7, item8,
item9, "
"item10, item11, item12, item13, item14, item15, item16,
item17, item18")
;
std::cout << options << std::endl;
}}}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1527>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC