Skip to content

Conversation

uliska
Copy link
Collaborator

@uliska uliska commented Jul 23, 2015

This commit improves the melt_mapped_tokens function so that
adjacent tokens are also melted when they are separated by spaces, e.g.

{
  c d e
}

will only return one <span class="lilypond-pitch"> item instead of three.

This commit improves the `melt_mapped_tokens` function so that
adjacent tokens are also melted when they are separated by spaces, e.g.
{
  c d e
}
will only return one <span class="lilypond-pitch"> instead of three.
@wbsoft
Copy link
Collaborator

wbsoft commented Sep 25, 2015

I think this is nice, but shouldn't t == ' ' be t.isspace() ?

@uliska
Copy link
Collaborator Author

uliska commented Sep 25, 2015

Thanks for the hint, I wasn't aware of this function :-(

@wbsoft
Copy link
Collaborator

wbsoft commented Sep 25, 2015

that would allow tokens consisting of more than one space to be merged as well I guess.

@uliska
Copy link
Collaborator Author

uliska commented Sep 25, 2015 via email

wbsoft added a commit that referenced this pull request Sep 25, 2015
colorize: "Melt" also over space characters
@wbsoft wbsoft merged commit ed6e63f into master Sep 25, 2015
@wbsoft wbsoft deleted the merge-html-spans branch September 25, 2015 22:10
bryantgeorge added a commit to bryantgeorge/python-ly that referenced this pull request Dec 19, 2019
Resolve "Support breath marks"

Closes frescobaldi#45

See merge request bgeorge/python-ly!52
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

Successfully merging this pull request may close these issues.

2 participants