Created
November 19, 2013 15:23
-
-
Save jkishner/7546986 to your computer and use it in GitHub Desktop.
This is a simple script for the menubar outline in Fargo.io that will split a headline in 2. Insert a ^ where you want the headline split, then run the script. The text before the ^ will stay on that line. The text after the ^ will be added immediately below the headline. (To split a headline more than once, visit https://gist.github.com/jkishne…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
split into 2 | |
line = op.getLineText(); | |
line1 = line.split('^')[0]; | |
line2 = line.split('^')[1]; | |
op.setLineText(line1); | |
op.insert (line2, down); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment