From 7310951178a54cf3a7b502155f13bed6bf284f39 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Wed, 17 Jun 2020 09:48:45 +0800 Subject: [PATCH] doc: fix typos --- hledger-lib/Hledger/Read/CsvReader.hs | 2 +- hledger-lib/hledger_csv.m4.md | 2 +- hledger-web/hledger-web.m4.md | 2 +- hledger/CHANGES.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hledger-lib/Hledger/Read/CsvReader.hs b/hledger-lib/Hledger/Read/CsvReader.hs index 44db7b52b..0fca1422f 100644 --- a/hledger-lib/Hledger/Read/CsvReader.hs +++ b/hledger-lib/Hledger/Read/CsvReader.hs @@ -1090,7 +1090,7 @@ getEffectiveAssignment rules record f = lastMay $ map snd $ assignments -- the value of the referenced CSV field to match against. csvfieldvalue = dbg8 "csvfieldvalue" $ replaceCsvFieldReference rules record csvfieldref --- | Render a field assigment's template, possibly interpolating referenced +-- | Render a field assignment's template, possibly interpolating referenced -- CSV field values. Outer whitespace is removed from interpolated values. renderTemplate :: CsvRules -> CsvRecord -> FieldTemplate -> String renderTemplate rules record t = regexReplaceBy "%[A-z0-9_-]+" (replaceCsvFieldReference rules record) t diff --git a/hledger-lib/hledger_csv.m4.md b/hledger-lib/hledger_csv.m4.md index 35f94ec37..e37cbcc42 100644 --- a/hledger-lib/hledger_csv.m4.md +++ b/hledger-lib/hledger_csv.m4.md @@ -788,7 +788,7 @@ data. See: A posting amount can be set in one of these ways: -- by assigning (with a fields list or field assigment) to +- by assigning (with a fields list or field assignment) to `amountN` (posting N's amount) or `amount` (posting 1's amount) - by assigning to `amountN-in` and `amountN-out` (or `amount-in` and `amount-out`). diff --git a/hledger-web/hledger-web.m4.md b/hledger-web/hledger-web.m4.md index ebb331e27..9c1998c6d 100644 --- a/hledger-web/hledger-web.m4.md +++ b/hledger-web/hledger-web.m4.md @@ -128,7 +128,7 @@ creates an `AF_UNIX` socket file at the supplied path and uses that for communic This is an alternative way of running multiple hledger-web instances behind a reverse proxy that handles authentication for different users. The path can be derived in a predictable way, eg by using the username within the path. -As an example, `nginx` as reverse proxy can use the variabel `$remote_user` to +As an example, `nginx` as reverse proxy can use the variable `$remote_user` to derive a path from the username used in a [HTTP basic authentication](https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/). The following `proxy_pass` directive allows access to all `hledger-web` instances that created a socket in `/tmp/hledger/`: diff --git a/hledger/CHANGES.md b/hledger/CHANGES.md index 1c96209ce..43962db50 100644 --- a/hledger/CHANGES.md +++ b/hledger/CHANGES.md @@ -154,12 +154,12 @@ User-visible changes in the hledger command line tool and library. hledger ui 'amt:>200' - failed. This was becasue the process of dispatching from `hledger ui` + failed. This was because the process of dispatching from `hledger ui` to `hledger-ui` (note addition of `-`) lost the quotes around `amt:>20` and the `>` character was interpreted as a shell redirection operator, rather than as part of the argument. - The machinery for quoting or escaping arguements which contain + The machinery for quoting or escaping arguments which contain characters which require quoting or escaping (thus far whitespace and quotes) already existed. This solution simply adds shell stdio redirection characters to this set.