Changeset 178 for trunk/lingosource/castlib1/svn_Utilities.ls
- Timestamp:
- 06/06/08 12:41:29 (4 years ago)
- File:
-
- 1 edited
-
trunk/lingosource/castlib1/svn_Utilities.ls (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/svn_Utilities.ls
r173 r178 472 472 on mExportAllScriptsToDiskWithFolder me, skipIcons, selectionOnly, convertLineBreaksToUnix, theFolder, chooseNewPath 473 473 474 474 475 theFolder = string(theFolder) 475 476 if length(theFolder) < 1 then … … 528 529 529 530 530 531 532 531 isMac = (the platform contains "mac") -- we need the differentiation because of the dreaded 31 char limit 533 532 … … 572 571 573 572 memtype = memref.type 573 574 575 convertLineBreaksToUnixT = 0 574 576 575 577 -- if [#script].getPos(memtype) > 0 then … … 592 594 ext = ".html" 593 595 scrText = memref.html 594 convertLineBreaksToUnix = 0596 convertLineBreaksToUnixT = 0 595 597 scrtype = #text 596 598 ----------------------- … … 684 686 685 687 if convertLineBreaksToUnix = 1 then 686 687 if mCheckForXtra(me, "Pregex") = 1 then 688 689 scrTextLi = [scrText] 690 pregex_replace(scrTextLi, "\x0D\x0A?", "g", "\x0A") 691 scrText = scrTextLi[1] 692 693 else 694 695 fndStr = numToChar(13) & numToChar(10) 696 offs = offset(fndStr, scrText) 697 repeat while offs > 0 698 delete char offs of scrText 688 if convertLineBreaksToUnixT <> 1 then 689 if mCheckForXtra(me, "Pregex") = 1 then 690 691 scrTextLi = [scrText] 692 pregex_replace(scrTextLi, "\x0D\x0A?", "g", "\x0A") 693 scrText = scrTextLi[1] 694 695 else 696 697 fndStr = numToChar(13) & numToChar(10) 699 698 offs = offset(fndStr, scrText) 700 end repeat701 702 fndStr = numToChar(13)703 offs = offset(fndStr, scrText)704 repeat while offs > 0705 put numToChar(10) into char offs of scrText699 repeat while offs > 0 700 delete char offs of scrText 701 offs = offset(fndStr, scrText) 702 end repeat 703 704 fndStr = numToChar(13) 706 705 offs = offset(fndStr, scrText) 707 end repeat 708 706 repeat while offs > 0 707 put numToChar(10) into char offs of scrText 708 offs = offset(fndStr, scrText) 709 end repeat 710 end if 709 711 end if 710 712 end if 711 713 ----------------------------------------- 712 713 714 714 715 if theDefaultName <> origname then … … 727 728 noChanges = (mRemoveWhiteSpaces(me, scrText&"") = mRemoveWhiteSpaces(me, alterText&"")) 728 729 730 729 731 if noChanges = 0 then 730 732 731 732 733 mSaveToTextFile me, scrText, thisFolder & theDefaultName & ext 733 734 734 735 735 bmexp = 0
Note: See TracChangeset
for help on using the changeset viewer.
