aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bib-ls.awk
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2026-06-06 12:26:27 -0400
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2026-06-06 12:26:27 -0400
commitb56c273d8198ae6cee69bbc9fe5a6a61da4074e4 (patch)
treef75b89299fe2783354ba0ab7e3ace088fa60245a /lib/bib-ls.awk
parent4aec9800fca665713b0eba19f10af927b483332e (diff)
downloadbibutils-b56c273d8198ae6cee69bbc9fe5a6a61da4074e4.tar.gz
Code cleanup
Diffstat (limited to 'lib/bib-ls.awk')
-rw-r--r--lib/bib-ls.awk7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/bib-ls.awk b/lib/bib-ls.awk
index 909b654..c1e9c98 100644
--- a/lib/bib-ls.awk
+++ b/lib/bib-ls.awk
@@ -14,12 +14,9 @@ function bib_entry(type, key, a, t) {
a = bib_get("author")
if (a == "")
a = bib_get("editor")
- gsub(/[{}]/, "", a)
- gsub(/[ \t\r\n]+/, " ", a)
+ a = bib_clean(a)
if (match(a, / [Aa][Nn][Dd] /))
a = substr(a, 1, RSTART - 1) " et al."
- t = bib_get("title")
- gsub(/[{}]/, "", t)
- gsub(/[ \t\r\n]+/, " ", t)
+ t = bib_clean(bib_get("title"))
printf "%s\t%s\t%s\t%s\t%s\n", key, type, a, bib_get("year"), t
}