Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected text will not be read if it has preceding whitespace #97

Open
MingweiSamuel opened this issue Mar 22, 2014 · 1 comment
Open

Comments

@MingweiSamuel
Copy link

OSpritz will not display selected text if the selection starts with whitespace.

@AndreasBriese
Copy link

replace leading spaces of selection

function spritzify(input) {
    var input = input.replace(/\s*/,'');

AndreasBriese added a commit to AndreasBriese/OpenSpritz that referenced this issue Jun 14, 2014
solving issues Miserlou#102 and Miserlou#97

for the longer run it might be considered to have an global object 'spritz' with properties (i.e state running) and controling functions inside a closure instead of global variables and functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants