diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ledger.1 | 6 | ||||
-rw-r--r-- | doc/ledger3.texi | 17 |
2 files changed, 9 insertions, 14 deletions
diff --git a/doc/ledger.1 b/doc/ledger.1 index cc6df5d6..bb7262c8 100644 --- a/doc/ledger.1 +++ b/doc/ledger.1 @@ -1284,11 +1284,11 @@ for values that have a per-unit cost. .It Fn quoted expression Surround .Ar expression -with double-quotes. -.It Fn quoted_rfc4180 expression +with double quotes. +.It Fn quoted_rfc expression Surround .Ar expression -with double-quotes, compatible with rfc 4180. +with double quotes, compliant with rfc 4180. .It Sy real .\" Is there a difference between real and actual? Return true if the transaction is real, i.e not an automated or virtual diff --git a/doc/ledger3.texi b/doc/ledger3.texi index 9a538d99..db154873 100644 --- a/doc/ledger3.texi +++ b/doc/ledger3.texi @@ -8518,7 +8518,8 @@ Return the quantity of @var{value} for values that have a per-unit cost. @end defun @defun quoted expression -Surround @var{expression} with double-quotes. If expression contains a double-quote, it will be escaped with a backslash. +Surround @var{expression} with double quotes. If expression contains +a double quote, it will be escaped with a backslash. @smallexample @c command:EAD8AA7,with_input:3406FC1 $ ledger -f expr.dat --format "%(quoted(account)) %(quoted(amount))\n" reg @end smallexample @@ -8528,16 +8529,10 @@ $ ledger -f expr.dat --format "%(quoted(account)) %(quoted(amount))\n" reg @end smallexample @end defun -@c @defun quoted_rfc4180 expression -@c Surround @var{expression} with double-quotes, compliant with RFC 4180. If expression contains a double-quote, it will be represented with two double-quotes. -@c @smallexample @c command:EAD8AA7,with_input:3406FC1 -@c $ ledger -f expr.dat --format "%(quoted_rfc4180(account)) %(quoted_rfc4180(amount))\n" reg -@c @end smallexample -@c @smallexample @c output:EAD8AA7 -@c "Assets:Cash" "¤ -123,45" -@c "Expenses:Office Supplies" "¤ 123,45" -@c @end smallexample -@c @end defun +@defun quoted_rfc expression +Similar, except an embedded double quote would be escaped by +preceding it with another double quote, as prescribed by RFC 4180. +@end defun @defun round @value{FIXME:UNDOCUMENTED} |