[Genabel-commits] r1587 - pkg/GenABEL-general/scripts
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Feb 3 18:39:20 CET 2014
Author: lckarssen
Date: 2014-02-03 18:39:19 +0100 (Mon, 03 Feb 2014)
New Revision: 1587
Modified:
pkg/GenABEL-general/scripts/getdeps.awk
Log:
Instead of checking for spaces to mark the continuation of a line in getdeps.awk, use a regexp for general whitespace.
Modified: pkg/GenABEL-general/scripts/getdeps.awk
===================================================================
--- pkg/GenABEL-general/scripts/getdeps.awk 2014-02-03 15:54:11 UTC (rev 1586)
+++ pkg/GenABEL-general/scripts/getdeps.awk 2014-02-03 17:39:19 UTC (rev 1587)
@@ -22,8 +22,8 @@
}
-$1 ~ /^ / {
- # If a line starts with a space it's a continuation of the
+$1 ~ /^[[:space:]]/ {
+ # If a line starts with whitespace it's a continuation of the
# previous heading.
continued = 1
}
@@ -50,7 +50,7 @@
for (i = 1; i <= NF; i++) {
# Go over all
- gsub(/ /, "", $i) # Remove spaces in the field
+ gsub(/[[:space:]]/, "", $i) # Remove whitespace in the field
gsub(/\(.*\)/, "", $i)
if (i == NF) {
More information about the Genabel-commits
mailing list