diff options
| author | Trygve Laugstøl <trygvis@inamo.no> | 2025-07-09 11:39:00 +0200 |
|---|---|---|
| committer | Trygve Laugstøl <trygvis@inamo.no> | 2025-07-09 11:39:00 +0200 |
| commit | c42fee89493e06b35c7a5873e93b0b8734da6dd7 (patch) | |
| tree | 86da1ad2ff72b8af5c1d4feef9a3a29da4b6360e /convert2.awk | |
| parent | f31643f93b1c4c57bd6cc022861bfd3bffc020fd (diff) | |
| download | constance-ring-c42fee89493e06b35c7a5873e93b0b8734da6dd7.tar.gz constance-ring-c42fee89493e06b35c7a5873e93b0b8734da6dd7.tar.bz2 constance-ring-c42fee89493e06b35c7a5873e93b0b8734da6dd7.tar.xz constance-ring-c42fee89493e06b35c7a5873e93b0b8734da6dd7.zip | |
Better de-hyphentation
Diffstat (limited to 'convert2.awk')
| -rw-r--r-- | convert2.awk | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/convert2.awk b/convert2.awk index 9ca0dd4..b801ef1 100644 --- a/convert2.awk +++ b/convert2.awk @@ -1,6 +1,6 @@ # awk { - if (match($0, /-$/)) { + while (match($0, /-$/)) { # Drop line continuation gsub(/-$/, "") @@ -18,10 +18,7 @@ # Drop the first word, remove leading whitespace $1="" sub(/^[ \t]+/, "") - print - - next - } else { - print } + + print } |
