summaryrefslogtreecommitdiff
path: root/src/format.cc
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2014-05-18 09:51:32 -0400
committerMartin Michlmayr <tbm@cyrius.com>2014-05-18 09:51:32 -0400
commit2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f (patch)
tree4f3c4869a427ca176abd69af801b4a04bc8b5641 /src/format.cc
parent60fd2b234a4cf95223f58a87f413d37ff2ed5fc7 (diff)
downloadfork-ledger-2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f.tar.gz
fork-ledger-2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f.tar.bz2
fork-ledger-2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f.zip
Cosmetic change - format code consistently
Add a space between if and the opening bracket, between a closing round bracket and the following opening curly bracket, etc.
Diffstat (limited to 'src/format.cc')
-rw-r--r--src/format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format.cc b/src/format.cc
index 9b5e7d93..302c28d6 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -206,7 +206,7 @@ format_t::element_t * format_t::parse_elements(const string& fmt,
sizeof(format_mapping_t)); i++) {
if (*p == single_letter_mappings[i].letter) {
std::ostringstream expr;
- for (const char * ptr = single_letter_mappings[i].expr; *ptr; ){
+ for (const char * ptr = single_letter_mappings[i].expr; *ptr;) {
if (*ptr == '$') {
const char * beg = ++ptr;
while (*ptr && std::isalpha(*ptr))