From dea2aed0b509734ec4e1cd163ac2a4f013000da2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 11 Jun 2010 16:03:50 -0400 Subject: Untabified all source files --- src/quotes.cc | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/quotes.cc') diff --git a/src/quotes.cc b/src/quotes.cc index 4e3ec33e..90c1f3eb 100644 --- a/src/quotes.cc +++ b/src/quotes.cc @@ -40,13 +40,13 @@ namespace ledger { optional commodity_quote_from_script(commodity_t& commodity, - const optional& exchange_commodity) + const optional& exchange_commodity) { DEBUG("commodity.download", "downloading quote for symbol " << commodity.symbol()); #if defined(DEBUG_ON) if (exchange_commodity) DEBUG("commodity.download", - " in terms of commodity " << exchange_commodity->symbol()); + " in terms of commodity " << exchange_commodity->symbol()); #endif char buf[256]; @@ -76,29 +76,29 @@ commodity_quote_from_script(commodity_t& commodity, DEBUG("commodity.download", "downloaded quote: " << buf); if (optional > point = - commodity_pool_t::current_pool->parse_price_directive(buf)) { + commodity_pool_t::current_pool->parse_price_directive(buf)) { if (commodity_pool_t::current_pool->price_db) { #if defined(__GNUG__) && __GNUG__ < 3 - ofstream database(*commodity_pool_t::current_pool->price_db, - ios::out | ios::app); + ofstream database(*commodity_pool_t::current_pool->price_db, + ios::out | ios::app); #else - ofstream database(*commodity_pool_t::current_pool->price_db, - std::ios_base::out | std::ios_base::app); + ofstream database(*commodity_pool_t::current_pool->price_db, + std::ios_base::out | std::ios_base::app); #endif - database << "P " - << format_datetime(point->second.when, FMT_WRITTEN) - << " " << commodity.symbol() - << " " << point->second.price - << std::endl; + database << "P " + << format_datetime(point->second.when, FMT_WRITTEN) + << " " << commodity.symbol() + << " " << point->second.price + << std::endl; } return point->second; } } else { DEBUG("commodity.download", - "Failed to download price for '" << commodity.symbol() << - "' (command: \"getquote " << commodity.symbol() << - " " << (exchange_commodity ? - exchange_commodity->symbol() : "''") << "\")"); + "Failed to download price for '" << commodity.symbol() << + "' (command: \"getquote " << commodity.symbol() << + " " << (exchange_commodity ? + exchange_commodity->symbol() : "''") << "\")"); // Don't try to download this commodity again. commodity.add_flags(COMMODITY_NOMARKET); -- cgit v1.2.3