Skip to content

Commit

Permalink
format of transaction on man page
Browse files Browse the repository at this point in the history
  • Loading branch information
howeyc committed Jul 25, 2021
1 parent e8f4e3e commit 2f42452
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ledger/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var versionCmd = &cobra.Command{
Use: "version",
Short: "Version of ledger",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Ledger v0.3.3")
fmt.Println("Ledger v0.3.4")
},
}

Expand Down
14 changes: 13 additions & 1 deletion ledger/man/ledger.5
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,21 @@ Posting lines must have at-least one whitespace character to being the line
(usually tab). To allow for accounts in postings to contain spaces, two (or more)
whitespace characters are needed between the account and value.
.Pp
.Sh FORMAT
.Pp
Format of a transaction:
.Pp
.nf
.RS 4
YYYY/mm/dd <Payee>
<Account:Name> <Amount>
<Account:Name> <Amount>
.fi
.RE
.Pp
.Sh EXAMPLES
.Pp
Below are a couple example transactions.
Example transactions:
.Pp
.nf
.RS 4
Expand Down

0 comments on commit 2f42452

Please sign in to comment.