Skip to content

Commit

Permalink
fix currentLetter
Browse files Browse the repository at this point in the history
  • Loading branch information
vetl1489 committed Sep 9, 2023
1 parent fdf3a51 commit 8e7f469
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EKLMNumerator.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// EKLMNumerator, v.1.8
// EKLMNumerator, v.1.8.1
// © vetl1489, Vitaly Shutikov
// vetl1489@gmail.com
// Adobe InDesign Script. Нумерация абзацев буквами русского алфавита.
Expand Down Expand Up @@ -316,7 +316,7 @@ function main() {

// основной цикл
for (i = (selectParagraphs.length - 1); i >= 0; i--) {
currentLetter = capitalLetters.value ? numCharList[i].toUpperCase() : numCharList[i];
var currentLetter = capitalLetters.value ? numCharList[i].toUpperCase() : numCharList[i];
selectParagraphs[i].insertionPoints[0].contents = "\u200A\u200A" + tabBeforeJS + currentLetter;
app.findTextPreferences.findWhat = "^|^|" + tabBeforeText + currentLetter;
app.changeTextPreferences.changeTo = tabBeforeText + currentLetter + textDividerAfter;
Expand Down
2 changes: 2 additions & 0 deletions descript.ion
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

EKLMNumerator.jsx v. 1.8

0 comments on commit 8e7f469

Please sign in to comment.