summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@users.noreply.github.com>2020-01-14 10:01:23 +0100
committerGitHub <noreply@github.com>2020-01-14 10:01:23 +0100
commita8b1a9e3923c315a1ade856b0610f92489611cd5 (patch)
tree20ba8d982dbc7528068c0f38feb01ce90c5d880f
parentb76bedcec1750586b88536203090c22d97dd64e7 (diff)
parent587af4bea66b5bbe89163154141f4f5fa4c518e5 (diff)
Merge pull request #1 from lilt/master
Remove paragraph opening and closing tag (#1)
-rwxr-xr-xde-sgm2
1 files changed, 1 insertions, 1 deletions
diff --git a/de-sgm b/de-sgm
index 664c18c..0b9177d 100755
--- a/de-sgm
+++ b/de-sgm
@@ -3,5 +3,5 @@
egrep -v "^[[:space:]]*(<\?xml.*\?>|</?(mteval|doc|srcset|refset|translator|reviewer)[^>]*>)[[:space:]]*$" \
| egrep -v "^[[:space:]]*<(url|description|keywords|talkid|title|translator|reviewer)[^>]*>.*</(url|description|keywords|talkid|title|translator|reviewer)>[[:space:]]*$" \
- | sed "s|<seg[^>]*>\s*||" | sed "s|\s*</seg>$||"
+ | sed "s|<seg[^>]*>\s*||" | sed "s|\s*</seg>$||" | egrep -v "^[[:space:]]*<p>[[:space:]]*$|^[[:space:]]*</p>[[:space:]]*$"