diff options
author | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-02 21:44:00 +0200 |
---|---|---|
committer | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-02 21:44:00 +0200 |
commit | c4082d824547f116b03b5f9e62aa376bff1ddb1e (patch) | |
tree | 73eea258b848b5a64f2f751811bf302deb1cd66b | |
parent | 222571f8fd71c41d7b7e0b433de923d1d6ff1e55 (diff) | |
download | ref-c4082d824547f116b03b5f9e62aa376bff1ddb1e.tar.gz |
re: Wrap lines longer than 60 characters
-rwxr-xr-x | re | 5 | ||||
-rw-r--r-- | re.tmac | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -111,8 +111,11 @@ while (<$fh>) { while ($_ = readline $handles{$file}) { $bytes += length($_); last if $end and $bytes > $end; + /^(\s+)/; my $indent = $1; + s/(.{60})(.)/$1\\fR...\\fP\n$indent\t$2/g; s/\\/\\\\/g; - s/^\./\\&./; + s/\\\\fR...\\\\fP/\\fR...\\fP/g; + s/^\./\\&./m; print; } @@ -6,7 +6,7 @@ . if !(\nz = 1) .if (\np > 0) .if (\n% > \np) .sp -(\nbu - \ncu - 1.5v) . nf . ft C -. ps -1p +. ps -2p . vs -1p . ta 8n +8n +8n +8n +8n . in 2.2i |