improvement: consistent use of delimiter

This commit is contained in:
2025-06-18 15:27:40 +02:00
parent 428b9de85c
commit 3b8c412885
9 changed files with 102 additions and 65 deletions

View File

@@ -3,6 +3,8 @@
## ```
## <start> <end> <fpath> <collection> <status> <summary>
## ```.
## The output is space delimited.
## Summary may contain spaces, but it's the last in the list.
##
## @assign collection_labels: See configuration of the current program.
@@ -17,7 +19,8 @@
# @input summary: Content of SUMMARY field of the event
function print_data(start, dur, end, summary, cmd, collection, depth, path) {
summary = getcontent(summary)
gsub("\n", " ", summary) # This will be put on a single line
gsub("\n", " ", summary) # This will be put on a single line
gsub("\t", " ", summary) # Generally, we use tab as delimiter.
depth = split(FILENAME, path, "/")
fpath = path[depth-1] "/" path[depth]
collection = depth > 1 ? path[depth-1] : ""