A simple Adobe Illustrator script that replaces line breaks (Enter key breaks) with spaces in selected text frames while preserving all character formatting.
- ✅ Replaces line breaks with spaces in selected text frames
- ✅ Preserves all character formatting (bold, italic, colors, font families, etc.)
- ✅ Works with multiple selected text frames simultaneously
- ✅ Safe and reliable - processes characters individually to avoid formatting loss
- ✅ Shows confirmation message with the number of replacements made
When you use "Show Hidden Characters" in Adobe Illustrator, you can see paragraph marks (¶) where Enter was pressed, but Illustrator's built-in Find & Replace cannot find and replace these line break characters. This script solves that limitation.
- Select one or more text frames in Adobe Illustrator
- Go to File > Scripts > Other Script...
- Choose the
line-break-replacer.jsxfile - The script will automatically:
- Find all line break characters in selected text frames
- Replace them with single spaces
- Show a confirmation message
- Download the
line-break-replacer.jsxfile - Save it to your preferred location
- Run it via File > Scripts > Other Script... in Adobe Illustrator
- Open Window > Actions in Adobe Illustrator
- Create a new action
- Record the script execution
- Assign a keyboard shortcut for even faster access
- Script Language: Adobe ExtendScript (JavaScript for Adobe applications)
- Compatibility: Adobe Illustrator CS6 and later
- Character Codes Detected:
- ASCII 13 (Carriage Return)
- ASCII 10 (Line Feed)
- Processing Method: Backward iteration to prevent index shifting
- Format Preservation: Uses individual character ranges to maintain formatting
- Adobe Illustrator CS6 or later
- Text frames with line break characters
Feel free to submit issues, fork the repository, and create pull requests for any improvements.
This project is open source and available under the MIT License.
Adobe Illustrator'da seçili yazı bloklarındaki satır sonu karakterlerini (Enter ile oluşan) boşluklarla değiştiren basit bir script. Tüm karakter formatlarını korur.
- ✅ Seçili yazı bloklarındaki satır sonlarını boşluklarla değiştirir
- ✅ Tüm karakter formatlarını korur (kalın, italik, renkler, font aileleri vb.)
- ✅ Aynı anda birden fazla seçili yazı bloğu ile çalışır
- ✅ Güvenli ve güvenilir - format kaybını önlemek için karakterleri tek tek işler
- ✅ Yapılan değişiklik sayısını gösteren onay mesajı
Adobe Illustrator'da "Show Hidden Characters" kullandığınızda Enter'ın basıldığı yerlerde paragraf işaretlerini (¶) görebilirsiniz, ancak Illustrator'ın yerleşik Find & Replace özelliği bu satır sonu karakterlerini bulamaz ve değiştiremez. Bu script bu sınırlamayı çözer.
- Adobe Illustrator'da bir veya birden fazla yazı bloğunu seçin
- File > Scripts > Other Script... menüsüne gidin
line-break-replacer.jsxdosyasını seçin- Script otomatik olarak:
- Seçili yazı bloklarındaki tüm satır sonu karakterlerini bulur
- Bunları tek boşluklarla değiştirir
- Onay mesajı gösterir
line-break-replacer.jsxdosyasını indirin- İstediğiniz konuma kaydedin
- Adobe Illustrator'da File > Scripts > Other Script... ile çalıştırın
- Adobe Illustrator'da Window > Actions'ı açın
- Yeni bir action oluşturun
- Script çalıştırmasını kaydedin
- Daha hızlı erişim için klavye kısayolu atayın
- Script Dili: Adobe ExtendScript (Adobe uygulamaları için JavaScript)
- Uyumluluk: Adobe Illustrator CS6 ve sonrası
- Tespit Edilen Karakter Kodları:
- ASCII 13 (Carriage Return)
- ASCII 10 (Line Feed)
- İşleme Yöntemi: İndeks kaymasını önlemek için geriye doğru iterasyon
- Format Korunması: Formatı korumak için bireysel karakter aralıkları kullanır
- Adobe Illustrator CS6 veya sonrası
- Satır sonu karakterleri içeren yazı blokları
Sorunları bildirmek, repository'yi fork etmek ve iyileştirmeler için pull request oluşturmak için çekinmeyin.
Bu proje açık kaynaklıdır ve MIT Lisansı altında kullanılabilir.