summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwl <wl>2012-05-24 11:35:43 +0000
committerwl <wl>2012-05-24 11:35:43 +0000
commit2510fd3081231040da91bf132856d1beea4d41ad (patch)
tree20f142a22e0e00e349da5fc474540f97209879ed /src
parent2de7d09bec2ccf564b7b664d874cc5c16ef0a396 (diff)
downloadgroff-2510fd3081231040da91bf132856d1beea4d41ad.tar.gz
* src/roff/grog/grog.sh: Fix .so handling.
See http://lists.gnu.org/archive/html/bug-groff/2012-05/msg00000.html for the report and the bug fix.
Diffstat (limited to 'src')
-rw-r--r--src/roff/grog/grog.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/roff/grog/grog.sh b/src/roff/grog/grog.sh
index d4763b54..febacf4d 100644
--- a/src/roff/grog/grog.sh
+++ b/src/roff/grog/grog.sh
@@ -5,7 +5,7 @@
# Source file position: <groff-source>/src/roff/grog/grog.sh
# Installed position: <prefix>/bin/grog
-# Copyright (C) 1993, 2006, 2009, 2011 Free Software Foundation, Inc.
+# Copyright (C) 1993, 2006, 2009, 2011-2012 Free Software Foundation, Inc.
# Written by James Clark, maintained by Werner Lemberg.
# Rewritten by and put under GPL Bernd Warken.
@@ -159,7 +159,8 @@ eval sed "'s/[ ]*$//'" '--' "${filespec}" \
| @EGREP@ \
'^\.(cstart|P|PS|[PLI]P|[pnil]p|sh|Dd|Tp|Dp|De|Cx|Cl|Oo|.* Oo|Oc|.* Oc|NH|TL|TS|TE|EQ|TH|TL|NH|SH|\[|\]|R1|GS|G1|PH|SA|SO_START|SO_END)' \
| awk '
-/^\.SO_START$/ { so = 1 }
+/^\.SO_START$/ { so = 1
+ soelim = soelim||chem||eqn||grap||grn||pic||tbl||refer||(refer_start && !refer_end) }
/^\.SO_END$/ { so = 0 }
/^\.cstart$/ { chem++; if (so > 0) soelim++ }
/^\.TS/ { tbl++; in_tbl = 1; if (so > 0) soelim++; }