summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/scanpages/replicate.plist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-29 21:24:48 +0000
committerKarl Berry <karl@freefriends.org>2016-03-29 21:24:48 +0000
commit61c652c6ab0d56352e59455266ca1d649ba244d6 (patch)
treed0af0720070116c664d5848da7c4ec5c5c79909a /Master/texmf-dist/doc/latex/scanpages/replicate.plist
parent86d055cf3a39706e11cf2f143633f70879052726 (diff)
scanpages (29mar16)
git-svn-id: svn://tug.org/texlive/trunk@40177 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/scanpages/replicate.plist')
-rw-r--r--Master/texmf-dist/doc/latex/scanpages/replicate.plist9
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/scanpages/replicate.plist b/Master/texmf-dist/doc/latex/scanpages/replicate.plist
index 04beb49b623..fa40293b5a1 100644
--- a/Master/texmf-dist/doc/latex/scanpages/replicate.plist
+++ b/Master/texmf-dist/doc/latex/scanpages/replicate.plist
@@ -20,9 +20,14 @@ property trimitems : {" ", tab, linefeed, return}
set lf to linefeed
set cr to return
set crlf to cr &amp; lf
- set oldtid to text item delimiters tell application "TeXShop" to set s to content of selection of document 1 set tmp to (paragraphs of s)
+
+set oldtid to text item delimiters
+tell application "TeXShop" to set s to content of selection of document 1
+set tmp to (paragraphs of s)
set text item delimiters to {lf}
-set s to (tmp as text) set text item delimiters to "%Repetitions=" set tmp to (text items of s)
+set s to (tmp as text)
+set text item delimiters to "%Repetitions="
+set tmp to (text items of s)
set text item delimiters to oldtid
if not ((count of tmp) = 2) then
display dialog "Bailing! The selection does not contain exactly one '%Repetitions='"